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

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

Issue 2173033002: Make various views SetShape() methods take an unique_ptr. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 4 years, 4 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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 111 matching lines...) Expand 10 before | Expand all | Expand 10 after
122 void InitModalType(ui::ModalType modal_type) override; 122 void InitModalType(ui::ModalType modal_type) override;
123 gfx::Rect GetWindowBoundsInScreen() const override; 123 gfx::Rect GetWindowBoundsInScreen() const override;
124 gfx::Rect GetClientAreaBoundsInScreen() const override; 124 gfx::Rect GetClientAreaBoundsInScreen() const override;
125 gfx::Rect GetRestoredBounds() const override; 125 gfx::Rect GetRestoredBounds() const override;
126 std::string GetWorkspace() const override; 126 std::string GetWorkspace() const override;
127 void SetBounds(const gfx::Rect& bounds) override; 127 void SetBounds(const gfx::Rect& bounds) override;
128 void SetSize(const gfx::Size& size) override; 128 void SetSize(const gfx::Size& size) override;
129 void StackAbove(gfx::NativeView native_view) override; 129 void StackAbove(gfx::NativeView native_view) override;
130 void StackAtTop() override; 130 void StackAtTop() override;
131 void StackBelow(gfx::NativeView native_view) override; 131 void StackBelow(gfx::NativeView native_view) override;
132 void SetShape(SkRegion* shape) override; 132 void SetShape(std::unique_ptr<SkRegion> shape) override;
133 void Close() override; 133 void Close() override;
134 void CloseNow() override; 134 void CloseNow() override;
135 void Show() override; 135 void Show() override;
136 void Hide() override; 136 void Hide() override;
137 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; 137 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override;
138 void ShowWithWindowState(ui::WindowShowState state) override; 138 void ShowWithWindowState(ui::WindowShowState state) override;
139 bool IsVisible() const override; 139 bool IsVisible() const override;
140 void Activate() override; 140 void Activate() override;
141 void Deactivate() override; 141 void Deactivate() override;
142 bool IsActive() const override; 142 bool IsActive() const override;
(...skipping 164 matching lines...) Expand 10 before | Expand all | Expand 10 after
307 // The following factory is used for calls to close the NativeWidgetAura 307 // The following factory is used for calls to close the NativeWidgetAura
308 // instance. 308 // instance.
309 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 309 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
310 310
311 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 311 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
312 }; 312 };
313 313
314 } // namespace views 314 } // namespace views
315 315
316 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 316 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698