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

Side by Side Diff: ui/views/mus/native_widget_mus.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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_MUS_NATIVE_WIDGET_MUS_H_ 5 #ifndef UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 6 #define UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
7 7
8 #include <stdint.h> 8 #include <stdint.h>
9 9
10 #include <map> 10 #include <map>
(...skipping 123 matching lines...) Expand 10 before | Expand all | Expand 10 after
134 void InitModalType(ui::ModalType modal_type) override; 134 void InitModalType(ui::ModalType modal_type) override;
135 gfx::Rect GetWindowBoundsInScreen() const override; 135 gfx::Rect GetWindowBoundsInScreen() const override;
136 gfx::Rect GetClientAreaBoundsInScreen() const override; 136 gfx::Rect GetClientAreaBoundsInScreen() const override;
137 gfx::Rect GetRestoredBounds() const override; 137 gfx::Rect GetRestoredBounds() const override;
138 std::string GetWorkspace() const override; 138 std::string GetWorkspace() const override;
139 void SetBounds(const gfx::Rect& bounds) override; 139 void SetBounds(const gfx::Rect& bounds) override;
140 void SetSize(const gfx::Size& size) override; 140 void SetSize(const gfx::Size& size) override;
141 void StackAbove(gfx::NativeView native_view) override; 141 void StackAbove(gfx::NativeView native_view) override;
142 void StackAtTop() override; 142 void StackAtTop() override;
143 void StackBelow(gfx::NativeView native_view) override; 143 void StackBelow(gfx::NativeView native_view) override;
144 void SetShape(SkRegion* shape) override; 144 void SetShape(std::unique_ptr<SkRegion> shape) override;
145 void Close() override; 145 void Close() override;
146 void CloseNow() override; 146 void CloseNow() override;
147 void Show() override; 147 void Show() override;
148 void Hide() override; 148 void Hide() override;
149 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override; 149 void ShowMaximizedWithBounds(const gfx::Rect& restored_bounds) override;
150 void ShowWithWindowState(ui::WindowShowState state) override; 150 void ShowWithWindowState(ui::WindowShowState state) override;
151 bool IsVisible() const override; 151 bool IsVisible() const override;
152 void Activate() override; 152 void Activate() override;
153 void Deactivate() override; 153 void Deactivate() override;
154 bool IsActive() const override; 154 bool IsActive() const override;
(...skipping 130 matching lines...) Expand 10 before | Expand all | Expand 10 after
285 std::unique_ptr<ui::ViewProp> prop_; 285 std::unique_ptr<ui::ViewProp> prop_;
286 286
287 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_; 287 base::WeakPtrFactory<NativeWidgetMus> close_widget_factory_;
288 288
289 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus); 289 DISALLOW_COPY_AND_ASSIGN(NativeWidgetMus);
290 }; 290 };
291 291
292 } // namespace views 292 } // namespace views
293 293
294 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_ 294 #endif // UI_VIEWS_MUS_NATIVE_WIDGET_MUS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/chrome_native_app_window_views.cc ('k') | ui/views/mus/native_widget_mus.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698