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

Side by Side Diff: chrome/views/window/window.h

Issue 78002: Reorganize fullscreen mode handling. Now nearly everything is in WindowWin. ... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 8 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
« no previous file with comments | « chrome/views/widget/widget_win.cc ('k') | chrome/views/window/window_win.h » ('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) 2009 The Chromium Authors. All rights reserved. Use of this 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. Use of this
2 // source code is governed by a BSD-style license that can be found in the 2 // source code is governed by a BSD-style license that can be found in the
3 // LICENSE file. 3 // LICENSE file.
4 4
5 #ifndef CHROME_VIEWS_WINDOW_WINDOW_H_ 5 #ifndef CHROME_VIEWS_WINDOW_WINDOW_H_
6 #define CHROME_VIEWS_WINDOW_WINDOW_H_ 6 #define CHROME_VIEWS_WINDOW_WINDOW_H_
7 7
8 #include "base/gfx/native_widget_types.h" 8 #include "base/gfx/native_widget_types.h"
9 9
10 namespace gfx { 10 namespace gfx {
(...skipping 24 matching lines...) Expand all
35 // TODO(beng): This should eventually live somewhere else, probably closer to 35 // TODO(beng): This should eventually live somewhere else, probably closer to
36 // ClientView. 36 // ClientView.
37 static int GetLocalizedContentsWidth(int col_resource_id); 37 static int GetLocalizedContentsWidth(int col_resource_id);
38 static int GetLocalizedContentsHeight(int row_resource_id); 38 static int GetLocalizedContentsHeight(int row_resource_id);
39 static gfx::Size GetLocalizedContentsSize(int col_resource_id, 39 static gfx::Size GetLocalizedContentsSize(int col_resource_id,
40 int row_resource_id); 40 int row_resource_id);
41 41
42 // Retrieves the window's bounds, including its frame. 42 // Retrieves the window's bounds, including its frame.
43 virtual gfx::Rect GetBounds() const = 0; 43 virtual gfx::Rect GetBounds() const = 0;
44 44
45 // Retrieves the restored bounds for the window.
46 virtual gfx::Rect GetNormalBounds() const = 0;
47
45 // Sizes and/or places the window to the specified bounds, size or position. 48 // Sizes and/or places the window to the specified bounds, size or position.
46 virtual void SetBounds(const gfx::Rect& bounds) = 0; 49 virtual void SetBounds(const gfx::Rect& bounds) = 0;
47 50
48 // As above, except the window is inserted after |other_window| in the window 51 // As above, except the window is inserted after |other_window| in the window
49 // Z-order. If this window is not yet visible, other_window's monitor is used 52 // Z-order. If this window is not yet visible, other_window's monitor is used
50 // as the constraining rectangle, rather than this window's monitor. 53 // as the constraining rectangle, rather than this window's monitor.
51 virtual void SetBounds(const gfx::Rect& bounds, 54 virtual void SetBounds(const gfx::Rect& bounds,
52 gfx::NativeWindow other_window) = 0; 55 gfx::NativeWindow other_window) = 0;
53 56
54 // Makes the window visible. 57 // Makes the window visible.
(...skipping 16 matching lines...) Expand all
71 // Whether or not the window is currently active. 74 // Whether or not the window is currently active.
72 virtual bool IsActive() const = 0; 75 virtual bool IsActive() const = 0;
73 76
74 // Whether or not the window is currently visible. 77 // Whether or not the window is currently visible.
75 virtual bool IsVisible() const = 0; 78 virtual bool IsVisible() const = 0;
76 79
77 // Whether or not the window is maximized or minimized. 80 // Whether or not the window is maximized or minimized.
78 virtual bool IsMaximized() const = 0; 81 virtual bool IsMaximized() const = 0;
79 virtual bool IsMinimized() const = 0; 82 virtual bool IsMinimized() const = 0;
80 83
84 // Accessors for fullscreen state.
85 virtual void SetFullscreen(bool fullscreen) = 0;
86 virtual bool IsFullscreen() const = 0;
87
81 // Toggles the enable state for the Close button (and the Close menu item in 88 // Toggles the enable state for the Close button (and the Close menu item in
82 // the system menu). 89 // the system menu).
83 virtual void EnableClose(bool enable) = 0; 90 virtual void EnableClose(bool enable) = 0;
84 91
85 // Prevents the window from being rendered as deactivated the next time it is. 92 // Prevents the window from being rendered as deactivated the next time it is.
86 // This state is reset automatically as soon as the window becomes activated 93 // This state is reset automatically as soon as the window becomes activated
87 // again. There is no ability to control the state through this API as this 94 // again. There is no ability to control the state through this API as this
88 // leads to sync problems. 95 // leads to sync problems.
89 virtual void DisableInactiveRendering() = 0; 96 virtual void DisableInactiveRendering() = 0;
90 97
(...skipping 18 matching lines...) Expand all
109 // Retrieves the Window's client view. 116 // Retrieves the Window's client view.
110 virtual ClientView* GetClientView() const = 0; 117 virtual ClientView* GetClientView() const = 0;
111 118
112 // Retrieves the Window's native window handle. 119 // Retrieves the Window's native window handle.
113 virtual gfx::NativeWindow GetNativeWindow() const = 0; 120 virtual gfx::NativeWindow GetNativeWindow() const = 0;
114 }; 121 };
115 122
116 } // namespace views 123 } // namespace views
117 124
118 #endif // #ifndef CHROME_VIEWS_WINDOW_WINDOW_H_ 125 #endif // #ifndef CHROME_VIEWS_WINDOW_WINDOW_H_
OLDNEW
« no previous file with comments | « chrome/views/widget/widget_win.cc ('k') | chrome/views/window/window_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698