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

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

Issue 14222019: Trying to activate a window in a workspace other than the current is ignored while a system modal d… (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 7 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
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_BASE_LAYOUT_MANAGER_H_ 5 #ifndef ASH_WM_BASE_LAYOUT_MANAGER_H_
6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_ 6 #define ASH_WM_BASE_LAYOUT_MANAGER_H_
7 7
8 #include <set> 8 #include <set>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 70
71 // WindowObserver overrides: 71 // WindowObserver overrides:
72 virtual void OnWindowPropertyChanged(aura::Window* window, 72 virtual void OnWindowPropertyChanged(aura::Window* window,
73 const void* key, 73 const void* key,
74 intptr_t old) OVERRIDE; 74 intptr_t old) OVERRIDE;
75 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE; 75 virtual void OnWindowDestroying(aura::Window* window) OVERRIDE;
76 76
77 // aura::client::ActivationChangeObserver overrides: 77 // aura::client::ActivationChangeObserver overrides:
78 virtual void OnWindowActivated(aura::Window* gained_active, 78 virtual void OnWindowActivated(aura::Window* gained_active,
79 aura::Window* lost_active) OVERRIDE; 79 aura::Window* lost_active) OVERRIDE;
80 virtual void OnWindowActivationRequestCompleted(
81 aura::Window* request_active, aura::Window* actual_active) OVERRIDE;
80 82
81 protected: 83 protected:
82 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes. 84 // Invoked from OnWindowPropertyChanged() if |kShowStateKey| changes.
83 virtual void ShowStateChanged(aura::Window* window, 85 virtual void ShowStateChanged(aura::Window* window,
84 ui::WindowShowState last_show_state); 86 ui::WindowShowState last_show_state);
85 87
86 private: 88 private:
87 // Update window bounds based on a change in show state. 89 // Update window bounds based on a change in show state.
88 void UpdateBoundsFromShowState(aura::Window* window); 90 void UpdateBoundsFromShowState(aura::Window* window);
89 91
90 // Adjusts the window sizes when the screen changes its size or its 92 // Adjusts the window sizes when the screen changes its size or its
91 // work area insets. 93 // work area insets.
92 void AdjustWindowSizesForScreenChange(); 94 void AdjustWindowSizesForScreenChange();
93 95
94 // Set of windows we're listening to. 96 // Set of windows we're listening to.
95 WindowSet windows_; 97 WindowSet windows_;
96 98
97 aura::RootWindow* root_window_; 99 aura::RootWindow* root_window_;
98 100
99 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager); 101 DISALLOW_COPY_AND_ASSIGN(BaseLayoutManager);
100 }; 102 };
101 103
102 } // namespace internal 104 } // namespace internal
103 } // namespace ash 105 } // namespace ash
104 106
105 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_ 107 #endif // ASH_WM_BASE_LAYOUT_MANAGER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698