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

Side by Side Diff: ash/wm/workspace/workspace_layout_manager.h

Issue 19460014: Do not create workspace for fullscreen. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 7 years, 5 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/workspace/workspace.cc ('k') | ash/wm/workspace/workspace_layout_manager.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 (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 ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/shell_observer.h" 10 #include "ash/shell_observer.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 const void* key, 63 const void* key,
64 intptr_t old) OVERRIDE; 64 intptr_t old) OVERRIDE;
65 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 65 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
66 virtual void OnWindowBoundsChanged(aura::Window* window, 66 virtual void OnWindowBoundsChanged(aura::Window* window,
67 const gfx::Rect& old_bounds, 67 const gfx::Rect& old_bounds,
68 const gfx::Rect& new_bounds) OVERRIDE; 68 const gfx::Rect& new_bounds) OVERRIDE;
69 69
70 private: 70 private:
71 typedef std::set<aura::Window*> WindowSet; 71 typedef std::set<aura::Window*> WindowSet;
72 72
73 // Invoked when the show state of a window changes. |cloned_layer| is a clone 73 // Invoked when the show state of a window changes.
74 // of the windows layer tree. |cloned_layer| is only non-NULL if a cross fade
75 // should happen between the states. This method takes ownership of
76 // |cloned_layer|.
77 void ShowStateChanged(aura::Window* window, 74 void ShowStateChanged(aura::Window* window,
78 ui::WindowShowState last_show_state, 75 ui::WindowShowState last_show_state);
79 ui::Layer* cloned_layer);
80 76
81 enum AdjustWindowReason { 77 enum AdjustWindowReason {
82 ADJUST_WINDOW_SCREEN_SIZE_CHANGED, 78 ADJUST_WINDOW_SCREEN_SIZE_CHANGED,
83 ADJUST_WINDOW_DISPLAY_INSETS_CHANGED, 79 ADJUST_WINDOW_DISPLAY_INSETS_CHANGED,
84 ADJUST_WINDOW_WINDOW_ADDED 80 ADJUST_WINDOW_WINDOW_ADDED
85 }; 81 };
86 82
87 // Adjusts the sizes of the windows during a screen change. If this is called 83 // Adjusts the sizes of the windows during a screen change. If this is called
88 // for a screen size change (i.e. |reason| is 84 // for a screen size change (i.e. |reason| is
89 // ADJUST_WINDOW_SCREEN_SIZE_CHANGED), the non-maximized/non-fullscreen 85 // ADJUST_WINDOW_SCREEN_SIZE_CHANGED), the non-maximized/non-fullscreen
(...skipping 27 matching lines...) Expand all
117 // workspace switch. 113 // workspace switch.
118 gfx::Rect work_area_; 114 gfx::Rect work_area_;
119 115
120 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager); 116 DISALLOW_COPY_AND_ASSIGN(WorkspaceLayoutManager);
121 }; 117 };
122 118
123 } // namespace internal 119 } // namespace internal
124 } // namespace ash 120 } // namespace ash
125 121
126 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_ 122 #endif // ASH_WM_WORKSPACE_WORKSPACE_LAYOUT_MANAGER_H_
OLDNEW
« no previous file with comments | « ash/wm/workspace/workspace.cc ('k') | ash/wm/workspace/workspace_layout_manager.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698