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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host.h

Issue 1868363002: Replace scoped_ptr with std::unique_ptr in //ui (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@scopedptrcc
Patch Set: scopedptrui: rebase-make_scoped_ptr 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 (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 UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include <memory>
9
9 #include "ui/aura/window_event_dispatcher.h" 10 #include "ui/aura/window_event_dispatcher.h"
10 #include "ui/base/ui_base_types.h" 11 #include "ui/base/ui_base_types.h"
11 #include "ui/views/views_export.h" 12 #include "ui/views/views_export.h"
12 #include "ui/views/widget/widget.h" 13 #include "ui/views/widget/widget.h"
13 14
14 namespace aura { 15 namespace aura {
15 class WindowTreeHost; 16 class WindowTreeHost;
16 class Window; 17 class Window;
17 18
18 namespace client { 19 namespace client {
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 // Sets up resources needed before the WindowEventDispatcher has been created. 56 // Sets up resources needed before the WindowEventDispatcher has been created.
56 virtual void Init(aura::Window* content_window, 57 virtual void Init(aura::Window* content_window,
57 const Widget::InitParams& params) = 0; 58 const Widget::InitParams& params) = 0;
58 59
59 // Invoked once the DesktopNativeWidgetAura has been created. 60 // Invoked once the DesktopNativeWidgetAura has been created.
60 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0; 61 virtual void OnNativeWidgetCreated(const Widget::InitParams& params) = 0;
61 62
62 // Creates and returns the Tooltip implementation to use. Return value is 63 // Creates and returns the Tooltip implementation to use. Return value is
63 // owned by DesktopNativeWidgetAura and lives as long as 64 // owned by DesktopNativeWidgetAura and lives as long as
64 // DesktopWindowTreeHost. 65 // DesktopWindowTreeHost.
65 virtual scoped_ptr<corewm::Tooltip> CreateTooltip() = 0; 66 virtual std::unique_ptr<corewm::Tooltip> CreateTooltip() = 0;
66 67
67 // Creates and returns the DragDropClient implementation to use. Return value 68 // Creates and returns the DragDropClient implementation to use. Return value
68 // is owned by DesktopNativeWidgetAura and lives as long as 69 // is owned by DesktopNativeWidgetAura and lives as long as
69 // DesktopWindowTreeHost. 70 // DesktopWindowTreeHost.
70 virtual scoped_ptr<aura::client::DragDropClient> CreateDragDropClient( 71 virtual std::unique_ptr<aura::client::DragDropClient> CreateDragDropClient(
71 DesktopNativeCursorManager* cursor_manager) = 0; 72 DesktopNativeCursorManager* cursor_manager) = 0;
72 73
73 virtual void Close() = 0; 74 virtual void Close() = 0;
74 virtual void CloseNow() = 0; 75 virtual void CloseNow() = 0;
75 76
76 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0; 77 virtual aura::WindowTreeHost* AsWindowTreeHost() = 0;
77 78
78 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0; 79 virtual void ShowWindowWithState(ui::WindowShowState show_state) = 0;
79 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0; 80 virtual void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) = 0;
80 81
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
158 // Returns true if the Widget supports translucency. 159 // Returns true if the Widget supports translucency.
159 virtual bool IsTranslucentWindowOpacitySupported() const = 0; 160 virtual bool IsTranslucentWindowOpacitySupported() const = 0;
160 161
161 // Called when the window's size constraints change. 162 // Called when the window's size constraints change.
162 virtual void SizeConstraintsChanged() = 0; 163 virtual void SizeConstraintsChanged() = 0;
163 }; 164 };
164 165
165 } // namespace views 166 } // namespace views
166 167
167 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_ 168 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698