refactor: make NativeWindow getter methods const (#40804)
* refactor: make NativeWindow getter methods const * fixup! refactor: make NativeWindow getter methods const make GetZOrderLevel() const * fixup! refactor: make NativeWindow getter methods const fix oops
This commit is contained in:
parent
3a06047e61
commit
f229201f41
8 changed files with 238 additions and 238 deletions
|
@ -91,84 +91,84 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
|||
virtual void CloseImmediately();
|
||||
virtual void Focus();
|
||||
virtual void Blur();
|
||||
bool IsFocused();
|
||||
bool IsFocused() const;
|
||||
void Show();
|
||||
void ShowInactive();
|
||||
void Hide();
|
||||
bool IsVisible();
|
||||
bool IsEnabled();
|
||||
bool IsVisible() const;
|
||||
bool IsEnabled() const;
|
||||
void SetEnabled(bool enable);
|
||||
void Maximize();
|
||||
void Unmaximize();
|
||||
bool IsMaximized();
|
||||
bool IsMaximized() const;
|
||||
void Minimize();
|
||||
void Restore();
|
||||
bool IsMinimized();
|
||||
bool IsMinimized() const;
|
||||
void SetFullScreen(bool fullscreen);
|
||||
bool IsFullscreen();
|
||||
bool IsFullscreen() const;
|
||||
void SetBounds(const gfx::Rect& bounds, gin_helper::Arguments* args);
|
||||
gfx::Rect GetBounds();
|
||||
gfx::Rect GetBounds() const;
|
||||
void SetSize(int width, int height, gin_helper::Arguments* args);
|
||||
std::vector<int> GetSize();
|
||||
std::vector<int> GetSize() const;
|
||||
void SetContentSize(int width, int height, gin_helper::Arguments* args);
|
||||
std::vector<int> GetContentSize();
|
||||
std::vector<int> GetContentSize() const;
|
||||
void SetContentBounds(const gfx::Rect& bounds, gin_helper::Arguments* args);
|
||||
gfx::Rect GetContentBounds();
|
||||
bool IsNormal();
|
||||
gfx::Rect GetNormalBounds();
|
||||
gfx::Rect GetContentBounds() const;
|
||||
bool IsNormal() const;
|
||||
gfx::Rect GetNormalBounds() const;
|
||||
void SetMinimumSize(int width, int height);
|
||||
std::vector<int> GetMinimumSize();
|
||||
std::vector<int> GetMinimumSize() const;
|
||||
void SetMaximumSize(int width, int height);
|
||||
std::vector<int> GetMaximumSize();
|
||||
std::vector<int> GetMaximumSize() const;
|
||||
void SetSheetOffset(double offsetY, gin_helper::Arguments* args);
|
||||
void SetResizable(bool resizable);
|
||||
bool IsResizable();
|
||||
bool IsResizable() const;
|
||||
void SetMovable(bool movable);
|
||||
void MoveAbove(const std::string& sourceId, gin_helper::Arguments* args);
|
||||
void MoveTop();
|
||||
bool IsMovable();
|
||||
bool IsMovable() const;
|
||||
void SetMinimizable(bool minimizable);
|
||||
bool IsMinimizable();
|
||||
bool IsMinimizable() const;
|
||||
void SetMaximizable(bool maximizable);
|
||||
bool IsMaximizable();
|
||||
bool IsMaximizable() const;
|
||||
void SetFullScreenable(bool fullscreenable);
|
||||
bool IsFullScreenable();
|
||||
bool IsFullScreenable() const;
|
||||
void SetClosable(bool closable);
|
||||
bool IsClosable();
|
||||
bool IsClosable() const;
|
||||
void SetAlwaysOnTop(bool top, gin_helper::Arguments* args);
|
||||
bool IsAlwaysOnTop();
|
||||
bool IsAlwaysOnTop() const;
|
||||
void Center();
|
||||
void SetPosition(int x, int y, gin_helper::Arguments* args);
|
||||
std::vector<int> GetPosition();
|
||||
std::vector<int> GetPosition() const;
|
||||
void SetTitle(const std::string& title);
|
||||
std::string GetTitle();
|
||||
std::string GetTitle() const;
|
||||
void SetAccessibleTitle(const std::string& title);
|
||||
std::string GetAccessibleTitle();
|
||||
std::string GetAccessibleTitle() const;
|
||||
void FlashFrame(bool flash);
|
||||
void SetSkipTaskbar(bool skip);
|
||||
void SetExcludedFromShownWindowsMenu(bool excluded);
|
||||
bool IsExcludedFromShownWindowsMenu();
|
||||
bool IsExcludedFromShownWindowsMenu() const;
|
||||
void SetSimpleFullScreen(bool simple_fullscreen);
|
||||
bool IsSimpleFullScreen();
|
||||
bool IsSimpleFullScreen() const;
|
||||
void SetKiosk(bool kiosk);
|
||||
bool IsKiosk();
|
||||
bool IsKiosk() const;
|
||||
bool IsTabletMode() const;
|
||||
virtual void SetBackgroundColor(const std::string& color_name);
|
||||
std::string GetBackgroundColor(gin_helper::Arguments* args);
|
||||
std::string GetBackgroundColor(gin_helper::Arguments* args) const;
|
||||
void InvalidateShadow();
|
||||
void SetHasShadow(bool has_shadow);
|
||||
bool HasShadow();
|
||||
bool HasShadow() const;
|
||||
void SetOpacity(const double opacity);
|
||||
double GetOpacity();
|
||||
double GetOpacity() const;
|
||||
void SetShape(const std::vector<gfx::Rect>& rects);
|
||||
void SetRepresentedFilename(const std::string& filename);
|
||||
std::string GetRepresentedFilename();
|
||||
std::string GetRepresentedFilename() const;
|
||||
void SetDocumentEdited(bool edited);
|
||||
bool IsDocumentEdited();
|
||||
bool IsDocumentEdited() const;
|
||||
void SetIgnoreMouseEvents(bool ignore, gin_helper::Arguments* args);
|
||||
void SetContentProtection(bool enable);
|
||||
void SetFocusable(bool focusable);
|
||||
bool IsFocusable();
|
||||
bool IsFocusable() const;
|
||||
void SetMenu(v8::Isolate* isolate, v8::Local<v8::Value> menu);
|
||||
void RemoveMenu();
|
||||
void SetParentWindow(v8::Local<v8::Value> value, gin_helper::Arguments* args);
|
||||
|
@ -178,13 +178,13 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
|||
void SetOverlayIcon(const gfx::Image& overlay,
|
||||
const std::string& description);
|
||||
void SetVisibleOnAllWorkspaces(bool visible, gin_helper::Arguments* args);
|
||||
bool IsVisibleOnAllWorkspaces();
|
||||
bool IsVisibleOnAllWorkspaces() const;
|
||||
void SetAutoHideCursor(bool auto_hide);
|
||||
virtual void SetVibrancy(v8::Isolate* isolate, v8::Local<v8::Value> value);
|
||||
void SetBackgroundMaterial(const std::string& vibrancy);
|
||||
|
||||
#if BUILDFLAG(IS_MAC)
|
||||
std::string GetAlwaysOnTopLevel();
|
||||
std::string GetAlwaysOnTopLevel() const;
|
||||
void SetWindowButtonVisibility(bool visible);
|
||||
bool GetWindowButtonVisibility() const;
|
||||
void SetWindowButtonPosition(absl::optional<gfx::Point> position);
|
||||
|
@ -206,9 +206,9 @@ class BaseWindow : public gin_helper::TrackableObject<BaseWindow>,
|
|||
void AddTabbedWindow(NativeWindow* window, gin_helper::Arguments* args);
|
||||
v8::Local<v8::Value> GetTabbingIdentifier();
|
||||
void SetAutoHideMenuBar(bool auto_hide);
|
||||
bool IsMenuBarAutoHide();
|
||||
bool IsMenuBarAutoHide() const;
|
||||
void SetMenuBarVisibility(bool visible);
|
||||
bool IsMenuBarVisible();
|
||||
bool IsMenuBarVisible() const;
|
||||
void SetAspectRatio(double aspect_ratio, gin_helper::Arguments* args);
|
||||
void PreviewFile(const std::string& path, gin_helper::Arguments* args);
|
||||
void CloseFilePreview();
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue