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

Side by Side Diff: chrome/browser/ui/views/frame/immersive_mode_controller_ash.h

Issue 1865213004: Convert //chrome/browser/ui from scoped_ptr to std::unique_ptr (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: rebase 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 2012 The Chromium Authors. All rights reserved. 1 // Copyright 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 CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_
7 7
8 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h" 8 #include <memory>
9 9
10 #include "ash/wm/immersive_fullscreen_controller.h" 10 #include "ash/wm/immersive_fullscreen_controller.h"
11 #include "ash/wm/window_state_observer.h" 11 #include "ash/wm/window_state_observer.h"
12 #include "base/macros.h" 12 #include "base/macros.h"
13 #include "base/memory/scoped_ptr.h" 13 #include "chrome/browser/ui/views/frame/immersive_mode_controller.h"
14 #include "content/public/browser/notification_observer.h" 14 #include "content/public/browser/notification_observer.h"
15 #include "content/public/browser/notification_registrar.h" 15 #include "content/public/browser/notification_registrar.h"
16 #include "ui/gfx/geometry/rect.h" 16 #include "ui/gfx/geometry/rect.h"
17 17
18 namespace aura { 18 namespace aura {
19 class Window; 19 class Window;
20 } 20 }
21 21
22 class ImmersiveModeControllerAsh 22 class ImmersiveModeControllerAsh
23 : public ImmersiveModeController, 23 : public ImmersiveModeController,
(...skipping 40 matching lines...) Expand 10 before | Expand all | Expand 10 after
64 64
65 // ash::wm::WindowStateObserver override: 65 // ash::wm::WindowStateObserver override:
66 void OnPostWindowStateTypeChange(ash::wm::WindowState* window_state, 66 void OnPostWindowStateTypeChange(ash::wm::WindowState* window_state,
67 ash::wm::WindowStateType old_type) override; 67 ash::wm::WindowStateType old_type) override;
68 68
69 // content::NotificationObserver override: 69 // content::NotificationObserver override:
70 void Observe(int type, 70 void Observe(int type,
71 const content::NotificationSource& source, 71 const content::NotificationSource& source,
72 const content::NotificationDetails& details) override; 72 const content::NotificationDetails& details) override;
73 73
74 scoped_ptr<ash::ImmersiveFullscreenController> controller_; 74 std::unique_ptr<ash::ImmersiveFullscreenController> controller_;
75 75
76 // Not owned. 76 // Not owned.
77 BrowserView* browser_view_; 77 BrowserView* browser_view_;
78 aura::Window* native_window_; 78 aura::Window* native_window_;
79 79
80 // True if the observers for window restore and entering / exiting tab 80 // True if the observers for window restore and entering / exiting tab
81 // fullscreen are enabled. 81 // fullscreen are enabled.
82 bool observers_enabled_; 82 bool observers_enabled_;
83 83
84 // Whether a short "light bar" version of the tab strip should be painted when 84 // Whether a short "light bar" version of the tab strip should be painted when
85 // the top-of-window views are closed. If |use_tab_indicators_| is false, the 85 // the top-of-window views are closed. If |use_tab_indicators_| is false, the
86 // tab strip is not painted at all when the top-of-window views are closed. 86 // tab strip is not painted at all when the top-of-window views are closed.
87 bool use_tab_indicators_; 87 bool use_tab_indicators_;
88 88
89 // The current visible bounds of the find bar, in screen coordinates. This is 89 // The current visible bounds of the find bar, in screen coordinates. This is
90 // an empty rect if the find bar is not visible. 90 // an empty rect if the find bar is not visible.
91 gfx::Rect find_bar_visible_bounds_in_screen_; 91 gfx::Rect find_bar_visible_bounds_in_screen_;
92 92
93 // The fraction of the TopContainerView's height which is visible. Zero when 93 // The fraction of the TopContainerView's height which is visible. Zero when
94 // the top-of-window views are not revealed regardless of 94 // the top-of-window views are not revealed regardless of
95 // |use_tab_indicators_|. 95 // |use_tab_indicators_|.
96 double visible_fraction_; 96 double visible_fraction_;
97 97
98 content::NotificationRegistrar registrar_; 98 content::NotificationRegistrar registrar_;
99 99
100 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh); 100 DISALLOW_COPY_AND_ASSIGN(ImmersiveModeControllerAsh);
101 }; 101 };
102 102
103 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_ 103 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_IMMERSIVE_MODE_CONTROLLER_ASH_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/global_menu_bar_x11.h ('k') | chrome/browser/ui/views/frame/immersive_mode_controller_ash.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698