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

Side by Side Diff: layout/toplevel_window.h

Issue 6902072: wm: Update a lot of code to use structs from geometry.h. (Closed) Base URL: ssh://gitrw.chromium.org:9222/window_manager.git@master
Patch Set: move override-redirect stacking and visibility into Window Created 9 years, 7 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) 2010 The Chromium OS Authors. All rights reserved. 1 // Copyright (c) 2010 The Chromium OS 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 WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_ 5 #ifndef WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_
6 #define WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_ 6 #define WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_
7 7
8 #include <map> 8 #include <map>
9 9
10 #include "base/scoped_ptr.h" 10 #include "base/scoped_ptr.h"
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
77 77
78 // Handle a transient window that belongs to this toplevel being mapped. 78 // Handle a transient window that belongs to this toplevel being mapped.
79 void HandleTransientWindowMap(Window* transient_win, 79 void HandleTransientWindowMap(Window* transient_win,
80 bool stack_directly_above_toplevel); 80 bool stack_directly_above_toplevel);
81 81
82 // Handle a transient window that belong to this toplevel being unmapped. 82 // Handle a transient window that belong to this toplevel being unmapped.
83 void HandleTransientWindowUnmap(Window* transient_win); 83 void HandleTransientWindowUnmap(Window* transient_win);
84 84
85 // Handle a ConfigureRequest event about one of our transient windows. 85 // Handle a ConfigureRequest event about one of our transient windows.
86 void HandleTransientWindowConfigureRequest( 86 void HandleTransientWindowConfigureRequest(
87 Window* transient_win, 87 Window* transient_win, const Rect& requested_bounds);
88 int req_x, int req_y, int req_width, int req_height);
89 88
90 // Handle one of this toplevel's windows (either the toplevel window 89 // Handle one of this toplevel's windows (either the toplevel window
91 // itself or one of its transients) getting a button press. We remove 90 // itself or one of its transients) getting a button press. We remove
92 // the active pointer grab and try to assign the focus to the 91 // the active pointer grab and try to assign the focus to the
93 // clicked-on window. 92 // clicked-on window.
94 void HandleButtonPress(Window* button_win, XTime timestamp); 93 void HandleButtonPress(Window* button_win, XTime timestamp);
95 94
96 // Handles changes in the window type properties: the selected tab, 95 // Handles changes in the window type properties: the selected tab,
97 // or the number of tabs. Called by the layout manager when it sees 96 // or the number of tabs. Called by the layout manager when it sees
98 // that properties have changed. Returns true if any of the 97 // that properties have changed. Returns true if any of the
(...skipping 73 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 171
173 // Is this toplevel window currently fullscreen? 172 // Is this toplevel window currently fullscreen?
174 bool is_fullscreen_; 173 bool is_fullscreen_;
175 174
176 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow); 175 DISALLOW_COPY_AND_ASSIGN(ToplevelWindow);
177 }; 176 };
178 177
179 } // end namespace window_manager 178 } // end namespace window_manager
180 179
181 #endif // WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_ 180 #endif // WINDOW_MANAGER_LAYOUT_TOPLEVEL_WINDOW_H_
OLDNEW
« no previous file with comments | « layout/layout_manager_test.cc ('k') | layout/toplevel_window.cc » ('j') | window.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698