| OLD | NEW |
| 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_SHELL_H_ | 5 #ifndef ASH_SHELL_H_ |
| 6 #define ASH_SHELL_H_ | 6 #define ASH_SHELL_H_ |
| 7 | 7 |
| 8 #include <utility> | 8 #include <utility> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 163 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 174 int container_id); | 174 int container_id); |
| 175 | 175 |
| 176 // Returns the list of containers that match |container_id| in | 176 // Returns the list of containers that match |container_id| in |
| 177 // all root windows. | 177 // all root windows. |
| 178 static std::vector<aura::Window*> GetAllContainers(int container_id); | 178 static std::vector<aura::Window*> GetAllContainers(int container_id); |
| 179 | 179 |
| 180 void set_active_root_window(aura::RootWindow* active_root_window) { | 180 void set_active_root_window(aura::RootWindow* active_root_window) { |
| 181 active_root_window_ = active_root_window; | 181 active_root_window_ = active_root_window; |
| 182 } | 182 } |
| 183 | 183 |
| 184 // Adds or removes |filter| from the aura::Env's CompoundEventFilter. | 184 // Adds or removes |filter| from the aura::Env's pre-target event-handler |
| 185 // list. |
| 185 void AddEnvEventFilter(aura::EventFilter* filter); | 186 void AddEnvEventFilter(aura::EventFilter* filter); |
| 186 void RemoveEnvEventFilter(aura::EventFilter* filter); | 187 void RemoveEnvEventFilter(aura::EventFilter* filter); |
| 187 size_t GetEnvEventFilterCount() const; | |
| 188 | 188 |
| 189 // Shows the background menu over |widget|. | 189 // Shows the background menu over |widget|. |
| 190 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); | 190 void ShowBackgroundMenu(views::Widget* widget, const gfx::Point& location); |
| 191 | 191 |
| 192 // Toggles app list. | 192 // Toggles app list. |
| 193 void ToggleAppList(); | 193 void ToggleAppList(); |
| 194 | 194 |
| 195 // Returns app list target visibility. | 195 // Returns app list target visibility. |
| 196 bool GetAppListTargetVisibility() const; | 196 bool GetAppListTargetVisibility() const; |
| 197 | 197 |
| (...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 239 void AddShellObserver(ShellObserver* observer); | 239 void AddShellObserver(ShellObserver* observer); |
| 240 void RemoveShellObserver(ShellObserver* observer); | 240 void RemoveShellObserver(ShellObserver* observer); |
| 241 | 241 |
| 242 #if !defined(OS_MACOSX) | 242 #if !defined(OS_MACOSX) |
| 243 AcceleratorController* accelerator_controller() { | 243 AcceleratorController* accelerator_controller() { |
| 244 return accelerator_controller_.get(); | 244 return accelerator_controller_.get(); |
| 245 } | 245 } |
| 246 #endif // !defined(OS_MACOSX) | 246 #endif // !defined(OS_MACOSX) |
| 247 | 247 |
| 248 aura::shared::CompoundEventFilter* env_filter() { | 248 aura::shared::CompoundEventFilter* env_filter() { |
| 249 return env_filter_; | 249 return env_filter_.get(); |
| 250 } | 250 } |
| 251 internal::TooltipController* tooltip_controller() { | 251 internal::TooltipController* tooltip_controller() { |
| 252 return tooltip_controller_.get(); | 252 return tooltip_controller_.get(); |
| 253 } | 253 } |
| 254 internal::EventRewriterEventFilter* event_rewriter_filter() { | 254 internal::EventRewriterEventFilter* event_rewriter_filter() { |
| 255 return event_rewriter_filter_.get(); | 255 return event_rewriter_filter_.get(); |
| 256 } | 256 } |
| 257 internal::OverlayEventFilter* overlay_filter() { | 257 internal::OverlayEventFilter* overlay_filter() { |
| 258 return overlay_filter_.get(); | 258 return overlay_filter_.get(); |
| 259 } | 259 } |
| (...skipping 133 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 393 // If set before the Shell is initialized, the mouse cursor will be hidden | 393 // If set before the Shell is initialized, the mouse cursor will be hidden |
| 394 // when the screen is initially created. | 394 // when the screen is initially created. |
| 395 static bool initially_hide_cursor_; | 395 static bool initially_hide_cursor_; |
| 396 | 396 |
| 397 ScreenAsh* screen_; | 397 ScreenAsh* screen_; |
| 398 | 398 |
| 399 // Active root window. Never becomes NULL during the session. | 399 // Active root window. Never becomes NULL during the session. |
| 400 aura::RootWindow* active_root_window_; | 400 aura::RootWindow* active_root_window_; |
| 401 | 401 |
| 402 // The CompoundEventFilter owned by aura::Env object. | 402 // The CompoundEventFilter owned by aura::Env object. |
| 403 aura::shared::CompoundEventFilter* env_filter_; | 403 scoped_ptr<aura::shared::CompoundEventFilter> env_filter_; |
| 404 | 404 |
| 405 std::vector<WindowAndBoundsPair> to_restore_; | 405 std::vector<WindowAndBoundsPair> to_restore_; |
| 406 | 406 |
| 407 #if !defined(OS_MACOSX) | 407 #if !defined(OS_MACOSX) |
| 408 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; | 408 scoped_ptr<NestedDispatcherController> nested_dispatcher_controller_; |
| 409 | 409 |
| 410 scoped_ptr<AcceleratorController> accelerator_controller_; | 410 scoped_ptr<AcceleratorController> accelerator_controller_; |
| 411 #endif // !defined(OS_MACOSX) | 411 #endif // !defined(OS_MACOSX) |
| 412 | 412 |
| 413 scoped_ptr<ShellDelegate> delegate_; | 413 scoped_ptr<ShellDelegate> delegate_; |
| (...skipping 74 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 488 | 488 |
| 489 // Used by ash/shell. | 489 // Used by ash/shell. |
| 490 content::BrowserContext* browser_context_; | 490 content::BrowserContext* browser_context_; |
| 491 | 491 |
| 492 DISALLOW_COPY_AND_ASSIGN(Shell); | 492 DISALLOW_COPY_AND_ASSIGN(Shell); |
| 493 }; | 493 }; |
| 494 | 494 |
| 495 } // namespace ash | 495 } // namespace ash |
| 496 | 496 |
| 497 #endif // ASH_SHELL_H_ | 497 #endif // ASH_SHELL_H_ |
| OLD | NEW |