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

Side by Side Diff: chrome/browser/ui/base_window.h

Issue 12224027: Revert "GTTF: Add missing virtual destructors." (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: rebase Created 7 years, 10 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 | Annotate | Revision Log
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_BASE_WINDOW_H_ 5 #ifndef CHROME_BROWSER_UI_BASE_WINDOW_H_
6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_ 6 #define CHROME_BROWSER_UI_BASE_WINDOW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "ui/gfx/native_widget_types.h" 9 #include "ui/gfx/native_widget_types.h"
10 10
11 namespace gfx { 11 namespace gfx {
12 class Rect; 12 class Rect;
13 } 13 }
14 14
15 class SkRegion; 15 class SkRegion;
16 16
17 // This API needs to be implemented by any window that might be accessed 17 // This API needs to be implemented by any window that might be accessed
18 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). 18 // through chrome.windows or chrome.tabs (e.g. browser windows and panels).
19 19
20 class BaseWindow { 20 class BaseWindow {
21 public: 21 public:
22 virtual ~BaseWindow() { }
23
24 // Returns true if the window is currently the active/focused window. 22 // Returns true if the window is currently the active/focused window.
25 virtual bool IsActive() const = 0; 23 virtual bool IsActive() const = 0;
26 24
27 // Returns true if the window is maximized (aka zoomed). 25 // Returns true if the window is maximized (aka zoomed).
28 virtual bool IsMaximized() const = 0; 26 virtual bool IsMaximized() const = 0;
29 27
30 // Returns true if the window is minimized. 28 // Returns true if the window is minimized.
31 virtual bool IsMinimized() const = 0; 29 virtual bool IsMinimized() const = 0;
32 30
33 // Returns true if the window is full screen. 31 // Returns true if the window is full screen.
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 75
78 // Flashes the taskbar item associated with this window. 76 // Flashes the taskbar item associated with this window.
79 // Set |flash| to true to initiate flashing, false to stop flashing. 77 // Set |flash| to true to initiate flashing, false to stop flashing.
80 virtual void FlashFrame(bool flash) = 0; 78 virtual void FlashFrame(bool flash) = 0;
81 79
82 // Returns true if a window is set to be always on top. 80 // Returns true if a window is set to be always on top.
83 virtual bool IsAlwaysOnTop() const = 0; 81 virtual bool IsAlwaysOnTop() const = 0;
84 }; 82 };
85 83
86 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ 84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/autofill/autofill_popup_delegate.h ('k') | chrome/browser/ui/gtk/avatar_menu_item_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698