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

Side by Side Diff: ash/wm/window_state.h

Issue 309793005: Fixing problem with edge swipe exiting immersive mode (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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 | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/window_state.cc » ('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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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 ASH_WM_WINDOW_STATE_H_ 5 #ifndef ASH_WM_WINDOW_STATE_H_
6 #define ASH_WM_WINDOW_STATE_H_ 6 #define ASH_WM_WINDOW_STATE_H_
7 7
8 #include "ash/ash_export.h" 8 #include "ash/ash_export.h"
9 #include "ash/wm/drag_details.h" 9 #include "ash/wm/drag_details.h"
10 #include "ash/wm/wm_types.h" 10 #include "ash/wm/wm_types.h"
(...skipping 249 matching lines...) Expand 10 before | Expand all | Expand 10 after
260 260
261 // True if this window has requested that the top-row keys (back, forward, 261 // True if this window has requested that the top-row keys (back, forward,
262 // brightness, volume) should be treated as function keys. 262 // brightness, volume) should be treated as function keys.
263 bool top_row_keys_are_function_keys() const { 263 bool top_row_keys_are_function_keys() const {
264 return top_row_keys_are_function_keys_; 264 return top_row_keys_are_function_keys_;
265 } 265 }
266 void set_top_row_keys_are_function_keys(bool value) { 266 void set_top_row_keys_are_function_keys(bool value) {
267 top_row_keys_are_function_keys_ = value; 267 top_row_keys_are_function_keys_ = value;
268 } 268 }
269 269
270 // True if the window is in immersive full screen mode which is slightly
271 // different than normal fullscreen mode (e.g. use of edge swipe gestures).
272 bool immersive_mode() const {
pkotwicz 2014/06/02 19:50:06 This should be called in_immersive_fullscreen().
Mr4D (OOO till 08-26) 2014/06/02 20:36:20 Done.
273 return immersive_mode_;
274 }
275 void set_immersive_mode(bool enable) {
276 immersive_mode_ = enable;
277 }
278
270 // Creates and takes ownership of a pointer to DragDetails when resizing is 279 // Creates and takes ownership of a pointer to DragDetails when resizing is
271 // active. This should be done before a resizer gets created. 280 // active. This should be done before a resizer gets created.
272 void CreateDragDetails(aura::Window* window, 281 void CreateDragDetails(aura::Window* window,
273 const gfx::Point& point_in_parent, 282 const gfx::Point& point_in_parent,
274 int window_component, 283 int window_component,
275 aura::client::WindowMoveSource source); 284 aura::client::WindowMoveSource source);
276 285
277 // Deletes and clears a pointer to DragDetails. This should be done when the 286 // Deletes and clears a pointer to DragDetails. This should be done when the
278 // resizer gets destroyed. 287 // resizer gets destroyed.
279 void DeleteDragDetails(); 288 void DeleteDragDetails();
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
332 // The owner of this window settings. 341 // The owner of this window settings.
333 aura::Window* window_; 342 aura::Window* window_;
334 scoped_ptr<WindowStateDelegate> delegate_; 343 scoped_ptr<WindowStateDelegate> delegate_;
335 344
336 bool window_position_managed_; 345 bool window_position_managed_;
337 bool bounds_changed_by_user_; 346 bool bounds_changed_by_user_;
338 bool panel_attached_; 347 bool panel_attached_;
339 bool ignored_by_shelf_; 348 bool ignored_by_shelf_;
340 bool can_consume_system_keys_; 349 bool can_consume_system_keys_;
341 bool top_row_keys_are_function_keys_; 350 bool top_row_keys_are_function_keys_;
351 bool immersive_mode_;
342 scoped_ptr<DragDetails> drag_details_; 352 scoped_ptr<DragDetails> drag_details_;
343 353
344 bool unminimize_to_restore_bounds_; 354 bool unminimize_to_restore_bounds_;
345 bool hide_shelf_when_fullscreen_; 355 bool hide_shelf_when_fullscreen_;
346 bool minimum_visibility_; 356 bool minimum_visibility_;
347 bool can_be_dragged_; 357 bool can_be_dragged_;
348 358
349 // A property to remember the window position which was set before the 359 // A property to remember the window position which was set before the
350 // auto window position manager changed the window bounds, so that it can get 360 // auto window position manager changed the window bounds, so that it can get
351 // restored when only this one window gets shown. 361 // restored when only this one window gets shown.
(...skipping 19 matching lines...) Expand all
371 ASH_EXPORT WindowState* GetWindowState(aura::Window* window); 381 ASH_EXPORT WindowState* GetWindowState(aura::Window* window);
372 382
373 // const version of GetWindowState. 383 // const version of GetWindowState.
374 ASH_EXPORT const WindowState* 384 ASH_EXPORT const WindowState*
375 GetWindowState(const aura::Window* window); 385 GetWindowState(const aura::Window* window);
376 386
377 } // namespace wm 387 } // namespace wm
378 } // namespace ash 388 } // namespace ash
379 389
380 #endif // ASH_WM_WINDOW_STATE_H_ 390 #endif // ASH_WM_WINDOW_STATE_H_
OLDNEW
« no previous file with comments | « ash/wm/maximize_mode/maximize_mode_window_manager_unittest.cc ('k') | ash/wm/window_state.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698