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

Side by Side Diff: chrome/browser/ui/panels/panel.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
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_collection.h ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_PANELS_PANEL_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gtest_prod_util.h" 10 #include "base/gtest_prod_util.h"
(...skipping 98 matching lines...) Expand 10 before | Expand all | Expand 10 after
109 void FullScreenModeChanged(bool is_full_screen); 109 void FullScreenModeChanged(bool is_full_screen);
110 110
111 int TitleOnlyHeight() const; 111 int TitleOnlyHeight() const;
112 112
113 // Returns true if the panel can show minimize or restore button in its 113 // Returns true if the panel can show minimize or restore button in its
114 // titlebar, depending on its state. 114 // titlebar, depending on its state.
115 bool CanShowMinimizeButton() const; 115 bool CanShowMinimizeButton() const;
116 bool CanShowRestoreButton() const; 116 bool CanShowRestoreButton() const;
117 117
118 // ui::BaseWindow overrides. 118 // ui::BaseWindow overrides.
119 virtual bool IsActive() const OVERRIDE; 119 virtual bool IsActive() const override;
120 virtual bool IsMaximized() const OVERRIDE; 120 virtual bool IsMaximized() const override;
121 virtual bool IsMinimized() const OVERRIDE; 121 virtual bool IsMinimized() const override;
122 virtual bool IsFullscreen() const OVERRIDE; 122 virtual bool IsFullscreen() const override;
123 virtual gfx::NativeWindow GetNativeWindow() OVERRIDE; 123 virtual gfx::NativeWindow GetNativeWindow() override;
124 virtual gfx::Rect GetRestoredBounds() const OVERRIDE; 124 virtual gfx::Rect GetRestoredBounds() const override;
125 virtual ui::WindowShowState GetRestoredState() const OVERRIDE; 125 virtual ui::WindowShowState GetRestoredState() const override;
126 virtual gfx::Rect GetBounds() const OVERRIDE; 126 virtual gfx::Rect GetBounds() const override;
127 virtual void Show() OVERRIDE; 127 virtual void Show() override;
128 virtual void Hide() OVERRIDE; 128 virtual void Hide() override;
129 virtual void ShowInactive() OVERRIDE; 129 virtual void ShowInactive() override;
130 virtual void Close() OVERRIDE; 130 virtual void Close() override;
131 virtual void Activate() OVERRIDE; 131 virtual void Activate() override;
132 virtual void Deactivate() OVERRIDE; 132 virtual void Deactivate() override;
133 virtual void Maximize() OVERRIDE; 133 virtual void Maximize() override;
134 virtual void Minimize() OVERRIDE; 134 virtual void Minimize() override;
135 virtual void Restore() OVERRIDE; 135 virtual void Restore() override;
136 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 136 virtual void SetBounds(const gfx::Rect& bounds) override;
137 virtual void FlashFrame(bool flash) OVERRIDE; 137 virtual void FlashFrame(bool flash) override;
138 virtual bool IsAlwaysOnTop() const OVERRIDE; 138 virtual bool IsAlwaysOnTop() const override;
139 virtual void SetAlwaysOnTop(bool on_top) OVERRIDE; 139 virtual void SetAlwaysOnTop(bool on_top) override;
140 140
141 // Overridden from CommandUpdaterDelegate: 141 // Overridden from CommandUpdaterDelegate:
142 virtual void ExecuteCommandWithDisposition( 142 virtual void ExecuteCommandWithDisposition(
143 int id, 143 int id,
144 WindowOpenDisposition disposition) OVERRIDE; 144 WindowOpenDisposition disposition) override;
145 145
146 // content::NotificationObserver overrides. 146 // content::NotificationObserver overrides.
147 virtual void Observe(int type, 147 virtual void Observe(int type,
148 const content::NotificationSource& source, 148 const content::NotificationSource& source,
149 const content::NotificationDetails& details) OVERRIDE; 149 const content::NotificationDetails& details) override;
150 150
151 // extensions::ExtensionRegistryObserver. 151 // extensions::ExtensionRegistryObserver.
152 virtual void OnExtensionUnloaded( 152 virtual void OnExtensionUnloaded(
153 content::BrowserContext* browser_context, 153 content::BrowserContext* browser_context,
154 const extensions::Extension* extension, 154 const extensions::Extension* extension,
155 extensions::UnloadedExtensionInfo::Reason reason) OVERRIDE; 155 extensions::UnloadedExtensionInfo::Reason reason) override;
156 156
157 // Construct a native panel implementation. 157 // Construct a native panel implementation.
158 static NativePanel* CreateNativePanel(Panel* panel, 158 static NativePanel* CreateNativePanel(Panel* panel,
159 const gfx::Rect& bounds, 159 const gfx::Rect& bounds,
160 bool always_on_top); 160 bool always_on_top);
161 161
162 NativePanel* native_panel() const { return native_panel_; } 162 NativePanel* native_panel() const { return native_panel_; }
163 163
164 // Invoked when the native panel has detected a mouse click on the 164 // Invoked when the native panel has detected a mouse click on the
165 // panel's titlebar, minimize or restore buttons. Behavior of the 165 // panel's titlebar, minimize or restore buttons. Behavior of the
(...skipping 238 matching lines...) Expand 10 before | Expand all | Expand 10 after
404 404
405 // Icon showed in the task bar. 405 // Icon showed in the task bar.
406 gfx::Image app_icon_; 406 gfx::Image app_icon_;
407 407
408 base::WeakPtrFactory<Panel> image_loader_ptr_factory_; 408 base::WeakPtrFactory<Panel> image_loader_ptr_factory_;
409 409
410 DISALLOW_COPY_AND_ASSIGN(Panel); 410 DISALLOW_COPY_AND_ASSIGN(Panel);
411 }; 411 };
412 412
413 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_ 413 #endif // CHROME_BROWSER_UI_PANELS_PANEL_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/docked_panel_collection.h ('k') | chrome/browser/ui/panels/panel.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698