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

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

Issue 1867223004: Convert //ash from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 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 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>
oshima 2016/04/08 07:09:42 include?
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/macros.h" 12 #include "base/macros.h"
13 #include "base/timer/timer.h" 13 #include "base/timer/timer.h"
14 #include "ui/aura/window_observer.h" 14 #include "ui/aura/window_observer.h"
15 #include "ui/events/event_handler.h" 15 #include "ui/events/event_handler.h"
16 #include "ui/gfx/animation/animation_delegate.h" 16 #include "ui/gfx/animation/animation_delegate.h"
17 #include "ui/views/focus/focus_manager.h" 17 #include "ui/views/focus/focus_manager.h"
18 #include "ui/views/widget/widget_observer.h" 18 #include "ui/views/widget/widget_observer.h"
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 int mouse_x_when_hit_top_in_screen_; 267 int mouse_x_when_hit_top_in_screen_;
268 268
269 // Tracks if the controller has seen a ET_GESTURE_SCROLL_BEGIN, without the 269 // Tracks if the controller has seen a ET_GESTURE_SCROLL_BEGIN, without the
270 // following events. 270 // following events.
271 bool gesture_begun_; 271 bool gesture_begun_;
272 272
273 // Lock which keeps the top-of-window views revealed based on the current 273 // Lock which keeps the top-of-window views revealed based on the current
274 // mouse state and the current touch state. Acquiring the lock is used to 274 // mouse state and the current touch state. Acquiring the lock is used to
275 // trigger a reveal when the user moves the mouse to the top of the screen 275 // trigger a reveal when the user moves the mouse to the top of the screen
276 // and when the user does a SWIPE_OPEN edge gesture. 276 // and when the user does a SWIPE_OPEN edge gesture.
277 scoped_ptr<ImmersiveRevealedLock> located_event_revealed_lock_; 277 std::unique_ptr<ImmersiveRevealedLock> located_event_revealed_lock_;
278 278
279 // Lock which keeps the top-of-window views revealed based on the focused view 279 // Lock which keeps the top-of-window views revealed based on the focused view
280 // and the active widget. Acquiring the lock never triggers a reveal because 280 // and the active widget. Acquiring the lock never triggers a reveal because
281 // a view is not focusable till a reveal has made it visible. 281 // a view is not focusable till a reveal has made it visible.
282 scoped_ptr<ImmersiveRevealedLock> focus_revealed_lock_; 282 std::unique_ptr<ImmersiveRevealedLock> focus_revealed_lock_;
283 283
284 // The animation which controls sliding the top-of-window views in and out. 284 // The animation which controls sliding the top-of-window views in and out.
285 scoped_ptr<gfx::SlideAnimation> animation_; 285 std::unique_ptr<gfx::SlideAnimation> animation_;
286 286
287 // Whether the animations are disabled for testing. 287 // Whether the animations are disabled for testing.
288 bool animations_disabled_for_test_; 288 bool animations_disabled_for_test_;
289 289
290 // Manages bubbles which are anchored to a child of |top_container_|. 290 // Manages bubbles which are anchored to a child of |top_container_|.
291 class BubbleObserver; 291 class BubbleObserver;
292 scoped_ptr<BubbleObserver> bubble_observer_; 292 std::unique_ptr<BubbleObserver> bubble_observer_;
293 293
294 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_; 294 base::WeakPtrFactory<ImmersiveFullscreenController> weak_ptr_factory_;
295 295
296 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController); 296 DISALLOW_COPY_AND_ASSIGN(ImmersiveFullscreenController);
297 }; 297 };
298 298
299 } // namespace ash 299 } // namespace ash
300 300
301 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_ 301 #endif // ASH_WM_IMMERSIVE_FULLSCREEN_CONTROLLER_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698