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

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

Issue 132013004: Moves transient window observer methods out of WindowObserver (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: comments and update gyp Created 6 years, 11 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 | « no previous file | ash/wm/immersive_fullscreen_controller.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_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 5 #ifndef ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 6 #define ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
7 7
8 #include <vector> 8 #include <vector>
9 9
10 #include "ash/ash_export.h" 10 #include "ash/ash_export.h"
11 #include "ash/wm/immersive_revealed_lock.h" 11 #include "ash/wm/immersive_revealed_lock.h"
12 #include "base/timer/timer.h" 12 #include "base/timer/timer.h"
13 #include "ui/aura/window_observer.h" 13 #include "ui/aura/window_observer.h"
14 #include "ui/events/event_handler.h" 14 #include "ui/events/event_handler.h"
15 #include "ui/gfx/animation/animation_delegate.h" 15 #include "ui/gfx/animation/animation_delegate.h"
16 #include "ui/views/corewm/transient_window_observer.h"
16 #include "ui/views/focus/focus_manager.h" 17 #include "ui/views/focus/focus_manager.h"
17 #include "ui/views/widget/widget_observer.h" 18 #include "ui/views/widget/widget_observer.h"
18 19
19 namespace aura { 20 namespace aura {
20 class Window; 21 class Window;
21 } 22 }
22 23
23 namespace gfx { 24 namespace gfx {
24 class Point; 25 class Point;
25 class Rect; 26 class Rect;
26 class SlideAnimation; 27 class SlideAnimation;
27 } 28 }
28 29
29 namespace ui { 30 namespace ui {
30 class LocatedEvent; 31 class LocatedEvent;
31 } 32 }
32 33
33 namespace views { 34 namespace views {
34 class View; 35 class View;
35 class Widget; 36 class Widget;
36 } 37 }
37 38
38 namespace ash { 39 namespace ash {
39 40
40 class ASH_EXPORT ImmersiveFullscreenController 41 class ASH_EXPORT ImmersiveFullscreenController
41 : public gfx::AnimationDelegate, 42 : public gfx::AnimationDelegate,
42 public ui::EventHandler, 43 public ui::EventHandler,
44 public views::corewm::TransientWindowObserver,
43 public views::FocusChangeListener, 45 public views::FocusChangeListener,
44 public views::WidgetObserver, 46 public views::WidgetObserver,
45 public aura::WindowObserver,
46 public ImmersiveRevealedLock::Delegate { 47 public ImmersiveRevealedLock::Delegate {
47 public: 48 public:
48 // The enum is used for an enumerated histogram. New items should be only 49 // The enum is used for an enumerated histogram. New items should be only
49 // added to the end. 50 // added to the end.
50 enum WindowType { 51 enum WindowType {
51 WINDOW_TYPE_OTHER, 52 WINDOW_TYPE_OTHER,
52 WINDOW_TYPE_BROWSER, 53 WINDOW_TYPE_BROWSER,
53 WINDOW_TYPE_HOSTED_APP, 54 WINDOW_TYPE_HOSTED_APP,
54 WINDOW_TYPE_PACKAGED_APP, 55 WINDOW_TYPE_PACKAGED_APP,
55 WINDOW_TYPE_COUNT 56 WINDOW_TYPE_COUNT
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
135 136
136 // views::WidgetObserver overrides: 137 // views::WidgetObserver overrides:
137 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE; 138 virtual void OnWidgetDestroying(views::Widget* widget) OVERRIDE;
138 virtual void OnWidgetActivationChanged(views::Widget* widget, 139 virtual void OnWidgetActivationChanged(views::Widget* widget,
139 bool active) OVERRIDE; 140 bool active) OVERRIDE;
140 141
141 // gfx::AnimationDelegate overrides: 142 // gfx::AnimationDelegate overrides:
142 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE; 143 virtual void AnimationEnded(const gfx::Animation* animation) OVERRIDE;
143 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE; 144 virtual void AnimationProgressed(const gfx::Animation* animation) OVERRIDE;
144 145
145 // aura::WindowObserver overrides: 146 // views::coremw::TransientWindowObserver overrides:
Ben Goodger (Google) 2014/01/09 18:43:18 corewm
146 virtual void OnAddTransientChild(aura::Window* window, 147 virtual void OnTransientChildAdded(aura::Window* window,
147 aura::Window* transient) OVERRIDE; 148 aura::Window* transient) OVERRIDE;
148 virtual void OnRemoveTransientChild(aura::Window* window, 149 virtual void OnTransientChildRemoved(aura::Window* window,
149 aura::Window* transient) OVERRIDE; 150 aura::Window* transient) OVERRIDE;
150 151
151 // ash::ImmersiveRevealedLock::Delegate overrides: 152 // ash::ImmersiveRevealedLock::Delegate overrides:
152 virtual void LockRevealedState(AnimateReveal animate_reveal) OVERRIDE; 153 virtual void LockRevealedState(AnimateReveal animate_reveal) OVERRIDE;
153 virtual void UnlockRevealedState() OVERRIDE; 154 virtual void UnlockRevealedState() OVERRIDE;
154 155
155 private: 156 private:
156 friend class ImmersiveFullscreenControllerTest; 157 friend class ImmersiveFullscreenControllerTest;
157 158
158 enum Animate { 159 enum Animate {
159 ANIMATE_NO, 160 ANIMATE_NO,
(...skipping 129 matching lines...) Expand 10 before | Expand all | Expand 10 after
289 scoped_ptr<BubbleManager> bubble_manager_; 290 scoped_ptr<BubbleManager> bubble_manager_;
290 291
291 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; 292 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_;
292 293
293 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); 294 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController);
294 }; 295 };
295 296
296 } // namespace ash 297 } // namespace ash
297 298
298 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 299 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
OLDNEW
« no previous file with comments | « no previous file | ash/wm/immersive_fullscreen_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698