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

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

Issue 11369237: Add a way to fetch window frame metrics from NativeShellWindow (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: GetFrameInsets Created 8 years, 1 month 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/insets.h"
9 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
10 11
11 namespace gfx { 12 namespace gfx {
12 class Rect; 13 class Rect;
13 } 14 }
14 15
15 class SkRegion; 16 class SkRegion;
16 17
17 // This API needs to be implemented by any window that might be accessed 18 // 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). 19 // through chrome.windows or chrome.tabs (e.g. browser windows and panels).
(...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 73
73 // Sets the window's size and position to the specified values. 74 // Sets the window's size and position to the specified values.
74 virtual void SetBounds(const gfx::Rect& bounds) = 0; 75 virtual void SetBounds(const gfx::Rect& bounds) = 0;
75 76
76 // Flashes the taskbar item associated with this window. 77 // Flashes the taskbar item associated with this window.
77 // Set |flash| to true to initiate flashing, false to stop flashing. 78 // Set |flash| to true to initiate flashing, false to stop flashing.
78 virtual void FlashFrame(bool flash) = 0; 79 virtual void FlashFrame(bool flash) = 0;
79 80
80 // Returns true if a window is set to be always on top. 81 // Returns true if a window is set to be always on top.
81 virtual bool IsAlwaysOnTop() const = 0; 82 virtual bool IsAlwaysOnTop() const = 0;
83
84 virtual gfx::Insets GetFrameInsets() const {
85 return gfx::Insets();
86 }
stevenjb 2012/11/15 18:22:47 If we have a default implementation, we need to en
jeremya 2012/11/16 00:12:06 It isn't quite. ShellWindowViews < views::WidgetDe
82 }; 87 };
83 88
84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ 89 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698