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

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

Issue 54983005: Plumb native AppWindow input region through to window shape under Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Fix typo in X11 patch Created 7 years, 1 month 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 | Annotate | Revision Log
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_ROOT_WINDOW_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/root_window.h" 9 #include "ui/aura/root_window.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 75 matching lines...) Expand 10 before | Expand all | Expand 10 after
86 virtual void SetSize(const gfx::Size& size) = 0; 86 virtual void SetSize(const gfx::Size& size) = 0;
87 virtual void CenterWindow(const gfx::Size& size) = 0; 87 virtual void CenterWindow(const gfx::Size& size) = 0;
88 virtual void GetWindowPlacement(gfx::Rect* bounds, 88 virtual void GetWindowPlacement(gfx::Rect* bounds,
89 ui::WindowShowState* show_state) const = 0; 89 ui::WindowShowState* show_state) const = 0;
90 virtual gfx::Rect GetWindowBoundsInScreen() const = 0; 90 virtual gfx::Rect GetWindowBoundsInScreen() const = 0;
91 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0; 91 virtual gfx::Rect GetClientAreaBoundsInScreen() const = 0;
92 virtual gfx::Rect GetRestoredBounds() const = 0; 92 virtual gfx::Rect GetRestoredBounds() const = 0;
93 93
94 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0; 94 virtual gfx::Rect GetWorkAreaBoundsInScreen() const = 0;
95 95
96 // Sets the shape of the root window. If |native_region| is NULL then the
97 // window reverts to rectangular. Takes ownership of |native_region|.
96 virtual void SetShape(gfx::NativeRegion native_region) = 0; 98 virtual void SetShape(gfx::NativeRegion native_region) = 0;
97 99
98 virtual void Activate() = 0; 100 virtual void Activate() = 0;
99 virtual void Deactivate() = 0; 101 virtual void Deactivate() = 0;
100 virtual bool IsActive() const = 0; 102 virtual bool IsActive() const = 0;
101 virtual void Maximize() = 0; 103 virtual void Maximize() = 0;
102 virtual void Minimize() = 0; 104 virtual void Minimize() = 0;
103 virtual void Restore() = 0; 105 virtual void Restore() = 0;
104 virtual bool IsMaximized() const = 0; 106 virtual bool IsMaximized() const = 0;
105 virtual bool IsMinimized() const = 0; 107 virtual bool IsMinimized() const = 0;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
145 virtual void OnNativeWidgetBlur() = 0; 147 virtual void OnNativeWidgetBlur() = 0;
146 148
147 // Returns true if the Widget was closed but is still showing because of 149 // Returns true if the Widget was closed but is still showing because of
148 // animations. 150 // animations.
149 virtual bool IsAnimatingClosed() const = 0; 151 virtual bool IsAnimatingClosed() const = 0;
150 }; 152 };
151 153
152 } // namespace views 154 } // namespace views
153 155
154 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 156 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/apps/native_app_window_views.cc ('k') | ui/views/widget/desktop_aura/desktop_root_window_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698