Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(178)

Side by Side Diff: chrome/browser/ui/cocoa/panels/panel_cocoa.h

Issue 627043002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[a-s]* (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 5 #ifndef CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 6 #define CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
7 7
8 #import <Foundation/Foundation.h> 8 #import <Foundation/Foundation.h>
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "chrome/browser/ui/panels/native_panel.h" 10 #include "chrome/browser/ui/panels/native_panel.h"
11 #include "ui/gfx/rect.h" 11 #include "ui/gfx/rect.h"
12 12
13 class Panel; 13 class Panel;
14 @class PanelWindowControllerCocoa; 14 @class PanelWindowControllerCocoa;
15 15
16 // An implememtation of the native panel in Cocoa. 16 // An implememtation of the native panel in Cocoa.
17 // Bridges between C++ and the Cocoa NSWindow. Cross-platform code will 17 // Bridges between C++ and the Cocoa NSWindow. Cross-platform code will
18 // interact with this object when it needs to manipulate the window. 18 // interact with this object when it needs to manipulate the window.
19 class PanelCocoa : public NativePanel { 19 class PanelCocoa : public NativePanel {
20 public: 20 public:
21 PanelCocoa(Panel* panel, const gfx::Rect& bounds, bool always_on_top); 21 PanelCocoa(Panel* panel, const gfx::Rect& bounds, bool always_on_top);
22 virtual ~PanelCocoa(); 22 virtual ~PanelCocoa();
23 23
24 // Overridden from NativePanel 24 // Overridden from NativePanel
25 virtual void ShowPanel() OVERRIDE; 25 virtual void ShowPanel() override;
26 virtual void ShowPanelInactive() OVERRIDE; 26 virtual void ShowPanelInactive() override;
27 virtual gfx::Rect GetPanelBounds() const OVERRIDE; 27 virtual gfx::Rect GetPanelBounds() const override;
28 virtual void SetPanelBounds(const gfx::Rect& bounds) OVERRIDE; 28 virtual void SetPanelBounds(const gfx::Rect& bounds) override;
29 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) OVERRIDE; 29 virtual void SetPanelBoundsInstantly(const gfx::Rect& bounds) override;
30 virtual void ClosePanel() OVERRIDE; 30 virtual void ClosePanel() override;
31 virtual void ActivatePanel() OVERRIDE; 31 virtual void ActivatePanel() override;
32 virtual void DeactivatePanel() OVERRIDE; 32 virtual void DeactivatePanel() override;
33 virtual bool IsPanelActive() const OVERRIDE; 33 virtual bool IsPanelActive() const override;
34 virtual void PreventActivationByOS(bool prevent_activation) OVERRIDE; 34 virtual void PreventActivationByOS(bool prevent_activation) override;
35 virtual gfx::NativeWindow GetNativePanelWindow() OVERRIDE; 35 virtual gfx::NativeWindow GetNativePanelWindow() override;
36 virtual void UpdatePanelTitleBar() OVERRIDE; 36 virtual void UpdatePanelTitleBar() override;
37 virtual void UpdatePanelLoadingAnimations(bool should_animate) OVERRIDE; 37 virtual void UpdatePanelLoadingAnimations(bool should_animate) override;
38 virtual void PanelWebContentsFocused(content::WebContents* contents) OVERRIDE; 38 virtual void PanelWebContentsFocused(content::WebContents* contents) override;
39 virtual void PanelCut() OVERRIDE; 39 virtual void PanelCut() override;
40 virtual void PanelCopy() OVERRIDE; 40 virtual void PanelCopy() override;
41 virtual void PanelPaste() OVERRIDE; 41 virtual void PanelPaste() override;
42 virtual void DrawAttention(bool draw_attention) OVERRIDE; 42 virtual void DrawAttention(bool draw_attention) override;
43 virtual bool IsDrawingAttention() const OVERRIDE; 43 virtual bool IsDrawingAttention() const override;
44 virtual void HandlePanelKeyboardEvent( 44 virtual void HandlePanelKeyboardEvent(
45 const content::NativeWebKeyboardEvent& event) OVERRIDE; 45 const content::NativeWebKeyboardEvent& event) override;
46 virtual void FullScreenModeChanged(bool is_full_screen) OVERRIDE; 46 virtual void FullScreenModeChanged(bool is_full_screen) override;
47 virtual bool IsPanelAlwaysOnTop() const OVERRIDE; 47 virtual bool IsPanelAlwaysOnTop() const override;
48 virtual void SetPanelAlwaysOnTop(bool on_top) OVERRIDE; 48 virtual void SetPanelAlwaysOnTop(bool on_top) override;
49 virtual void UpdatePanelMinimizeRestoreButtonVisibility() OVERRIDE; 49 virtual void UpdatePanelMinimizeRestoreButtonVisibility() override;
50 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) OVERRIDE; 50 virtual void SetWindowCornerStyle(panel::CornerStyle corner_style) override;
51 virtual void PanelExpansionStateChanging( 51 virtual void PanelExpansionStateChanging(
52 Panel::ExpansionState old_state, 52 Panel::ExpansionState old_state,
53 Panel::ExpansionState new_state) OVERRIDE; 53 Panel::ExpansionState new_state) override;
54 virtual void AttachWebContents(content::WebContents* contents) OVERRIDE; 54 virtual void AttachWebContents(content::WebContents* contents) override;
55 virtual void DetachWebContents(content::WebContents* contents) OVERRIDE; 55 virtual void DetachWebContents(content::WebContents* contents) override;
56 56
57 // These sizes are in screen coordinates. 57 // These sizes are in screen coordinates.
58 virtual gfx::Size WindowSizeFromContentSize( 58 virtual gfx::Size WindowSizeFromContentSize(
59 const gfx::Size& content_size) const OVERRIDE; 59 const gfx::Size& content_size) const override;
60 virtual gfx::Size ContentSizeFromWindowSize( 60 virtual gfx::Size ContentSizeFromWindowSize(
61 const gfx::Size& window_size) const OVERRIDE; 61 const gfx::Size& window_size) const override;
62 virtual int TitleOnlyHeight() const OVERRIDE; 62 virtual int TitleOnlyHeight() const override;
63 63
64 virtual void MinimizePanelBySystem() OVERRIDE; 64 virtual void MinimizePanelBySystem() override;
65 virtual bool IsPanelMinimizedBySystem() const OVERRIDE; 65 virtual bool IsPanelMinimizedBySystem() const override;
66 virtual bool IsPanelShownOnActiveDesktop() const OVERRIDE; 66 virtual bool IsPanelShownOnActiveDesktop() const override;
67 virtual void ShowShadow(bool show) OVERRIDE; 67 virtual void ShowShadow(bool show) override;
68 virtual NativePanelTesting* CreateNativePanelTesting() OVERRIDE; 68 virtual NativePanelTesting* CreateNativePanelTesting() override;
69 69
70 Panel* panel() const; 70 Panel* panel() const;
71 void DidCloseNativeWindow(); 71 void DidCloseNativeWindow();
72 72
73 bool IsClosed() const; 73 bool IsClosed() const;
74 74
75 // PanelStackWindowCocoa might want to update the stored bounds directly since 75 // PanelStackWindowCocoa might want to update the stored bounds directly since
76 // it has already taken care of updating the window bounds directly. 76 // it has already taken care of updating the window bounds directly.
77 void set_cached_bounds_directly(const gfx::Rect& bounds) { bounds_ = bounds; } 77 void set_cached_bounds_directly(const gfx::Rect& bounds) { bounds_ = bounds; }
78 78
(...skipping 27 matching lines...) Expand all
106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever. 106 bool is_shown_; // Panel is hidden on creation, Show() changes that forever.
107 NSInteger attention_request_id_; // identifier from requestUserAttention. 107 NSInteger attention_request_id_; // identifier from requestUserAttention.
108 108
109 // Indicates how the window corner should be rendered, rounded or not. 109 // Indicates how the window corner should be rendered, rounded or not.
110 panel::CornerStyle corner_style_; 110 panel::CornerStyle corner_style_;
111 111
112 DISALLOW_COPY_AND_ASSIGN(PanelCocoa); 112 DISALLOW_COPY_AND_ASSIGN(PanelCocoa);
113 }; 113 };
114 114
115 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_ 115 #endif // CHROME_BROWSER_UI_COCOA_PANELS_PANEL_COCOA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/cocoa/panels/display_settings_provider_cocoa.mm ('k') | chrome/browser/ui/cocoa/panels/panel_cocoa.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698