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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_win.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_WINDOW_TREE_HOST_WIN_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "ui/aura/window_tree_host.h" 9 #include "ui/aura/window_tree_host.h"
10 #include "ui/views/views_export.h" 10 #include "ui/views/views_export.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 void StackAbove(aura::Window* window) override; 61 void StackAbove(aura::Window* window) override;
62 void StackAtTop() override; 62 void StackAtTop() override;
63 void CenterWindow(const gfx::Size& size) override; 63 void CenterWindow(const gfx::Size& size) override;
64 void GetWindowPlacement(gfx::Rect* bounds, 64 void GetWindowPlacement(gfx::Rect* bounds,
65 ui::WindowShowState* show_state) const override; 65 ui::WindowShowState* show_state) const override;
66 gfx::Rect GetWindowBoundsInScreen() const override; 66 gfx::Rect GetWindowBoundsInScreen() const override;
67 gfx::Rect GetClientAreaBoundsInScreen() const override; 67 gfx::Rect GetClientAreaBoundsInScreen() const override;
68 gfx::Rect GetRestoredBounds() const override; 68 gfx::Rect GetRestoredBounds() const override;
69 std::string GetWorkspace() const override; 69 std::string GetWorkspace() const override;
70 gfx::Rect GetWorkAreaBoundsInScreen() const override; 70 gfx::Rect GetWorkAreaBoundsInScreen() const override;
71 void SetShape(SkRegion* native_region) override; 71 void SetShape(std::unique_ptr<SkRegion> native_region) override;
72 void Activate() override; 72 void Activate() override;
73 void Deactivate() override; 73 void Deactivate() override;
74 bool IsActive() const override; 74 bool IsActive() const override;
75 void Maximize() override; 75 void Maximize() override;
76 void Minimize() override; 76 void Minimize() override;
77 void Restore() override; 77 void Restore() override;
78 bool IsMaximized() const override; 78 bool IsMaximized() const override;
79 bool IsMinimized() const override; 79 bool IsMinimized() const override;
80 bool HasCapture() const override; 80 bool HasCapture() const override;
81 void SetAlwaysOnTop(bool always_on_top) override; 81 void SetAlwaysOnTop(bool always_on_top) override;
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after
267 // Indicates if current window will receive mouse events when should not 267 // Indicates if current window will receive mouse events when should not
268 // become activated. 268 // become activated.
269 bool wants_mouse_events_when_inactive_ = false; 269 bool wants_mouse_events_when_inactive_ = false;
270 270
271 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin); 271 DISALLOW_COPY_AND_ASSIGN(DesktopWindowTreeHostWin);
272 }; 272 };
273 273
274 } // namespace views 274 } // namespace views
275 275
276 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_ 276 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_WINDOW_TREE_HOST_WIN_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host.h ('k') | ui/views/widget/desktop_aura/desktop_window_tree_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698