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

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

Issue 12803011: Add BaseWindow::GetContentBounds() and use in WindowController::CreateWindowValue() (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix osx build Created 7 years, 9 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
(...skipping 20 matching lines...) Expand all
31 // Returns true if the window is full screen. 31 // Returns true if the window is full screen.
32 virtual bool IsFullscreen() const = 0; 32 virtual bool IsFullscreen() const = 0;
33 33
34 // Return a platform dependent identifier for this window. 34 // Return a platform dependent identifier for this window.
35 virtual gfx::NativeWindow GetNativeWindow() = 0; 35 virtual gfx::NativeWindow GetNativeWindow() = 0;
36 36
37 // Returns the nonmaximized bounds of the window (even if the window is 37 // Returns the nonmaximized bounds of the window (even if the window is
38 // currently maximized or minimized) in terms of the screen coordinates. 38 // currently maximized or minimized) in terms of the screen coordinates.
39 virtual gfx::Rect GetRestoredBounds() const = 0; 39 virtual gfx::Rect GetRestoredBounds() const = 0;
40 40
41 // Retrieves the window's current bounds, including its window. 41 // Retrieves the window's current bounds, including its frame.
42 // This will only differ from GetRestoredBounds() for maximized 42 // This will only differ from GetRestoredBounds() for maximized
43 // and minimized windows. 43 // and minimized windows.
44 virtual gfx::Rect GetBounds() const = 0; 44 virtual gfx::Rect GetBounds() const = 0;
45 45
46 // Retrieves the bounds of window's content, not including its frame.
47 virtual gfx::Rect GetContentBounds() const = 0;
48
46 // Shows the window, or activates it if it's already visible. 49 // Shows the window, or activates it if it's already visible.
47 virtual void Show() = 0; 50 virtual void Show() = 0;
48 51
49 // Hides the window. 52 // Hides the window.
50 virtual void Hide() = 0; 53 virtual void Hide() = 0;
51 54
52 // Show the window, but do not activate it. Does nothing if window 55 // Show the window, but do not activate it. Does nothing if window
53 // is already visible. 56 // is already visible.
54 virtual void ShowInactive() = 0; 57 virtual void ShowInactive() = 0;
55 58
(...skipping 19 matching lines...) Expand all
75 78
76 // Flashes the taskbar item associated with this window. 79 // Flashes the taskbar item associated with this window.
77 // Set |flash| to true to initiate flashing, false to stop flashing. 80 // Set |flash| to true to initiate flashing, false to stop flashing.
78 virtual void FlashFrame(bool flash) = 0; 81 virtual void FlashFrame(bool flash) = 0;
79 82
80 // Returns true if a window is set to be always on top. 83 // Returns true if a window is set to be always on top.
81 virtual bool IsAlwaysOnTop() const = 0; 84 virtual bool IsAlwaysOnTop() const = 0;
82 }; 85 };
83 86
84 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_ 87 #endif // CHROME_BROWSER_UI_BASE_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/window_open_apitest.cc ('k') | chrome/browser/ui/cocoa/browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698