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

Side by Side Diff: ui/views/window/non_client_view.h

Issue 1419793006: Makes windowmanager draw non-client area (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: add include Created 5 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
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_WINDOW_NON_CLIENT_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_
6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 6 #define UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_
7 7
8 #include "ui/views/view.h" 8 #include "ui/views/view.h"
9 #include "ui/views/view_targeter_delegate.h" 9 #include "ui/views/view_targeter_delegate.h"
10 10
(...skipping 55 matching lines...) Expand 10 before | Expand all | Expand 10 after
66 // view should be laid out within. 66 // view should be laid out within.
67 virtual gfx::Rect GetBoundsForClientView() const = 0; 67 virtual gfx::Rect GetBoundsForClientView() const = 0;
68 68
69 virtual gfx::Rect GetWindowBoundsForClientBounds( 69 virtual gfx::Rect GetWindowBoundsForClientBounds(
70 const gfx::Rect& client_bounds) const = 0; 70 const gfx::Rect& client_bounds) const = 0;
71 71
72 // This function must ask the ClientView to do a hittest. We don't do this in 72 // This function must ask the ClientView to do a hittest. We don't do this in
73 // the parent NonClientView because that makes it more difficult to calculate 73 // the parent NonClientView because that makes it more difficult to calculate
74 // hittests for regions that are partially obscured by the ClientView, e.g. 74 // hittests for regions that are partially obscured by the ClientView, e.g.
75 // HTSYSMENU. 75 // HTSYSMENU.
76 // Return value is one of the windows HT constants (see ui/base/hit_test.h).
76 virtual int NonClientHitTest(const gfx::Point& point) = 0; 77 virtual int NonClientHitTest(const gfx::Point& point) = 0;
78
79 // Used to make the hosting widget shaped (non-rectangular). For a
80 // rectangular window do nothing. For a shaped window update |window_mask|
81 // accordingly. |size| is the size of the widget.
77 virtual void GetWindowMask(const gfx::Size& size, 82 virtual void GetWindowMask(const gfx::Size& size,
78 gfx::Path* window_mask) = 0; 83 gfx::Path* window_mask) = 0;
79 virtual void ResetWindowControls() = 0; 84 virtual void ResetWindowControls() = 0;
80 virtual void UpdateWindowIcon() = 0; 85 virtual void UpdateWindowIcon() = 0;
81 virtual void UpdateWindowTitle() = 0; 86 virtual void UpdateWindowTitle() = 0;
87
88 // Whether the widget can be resized or maximized has changed.
82 virtual void SizeConstraintsChanged() = 0; 89 virtual void SizeConstraintsChanged() = 0;
83 90
84 // View: 91 // View:
85 void GetAccessibleState(ui::AXViewState* state) override; 92 void GetAccessibleState(ui::AXViewState* state) override;
86 const char* GetClassName() const override; 93 const char* GetClassName() const override;
87 94
88 protected: 95 protected:
89 NonClientFrameView(); 96 NonClientFrameView();
90 97
91 // ViewTargeterDelegate: 98 // ViewTargeterDelegate:
(...skipping 157 matching lines...) Expand 10 before | Expand all | Expand 10 after
249 256
250 // The accessible name of this view. 257 // The accessible name of this view.
251 base::string16 accessible_name_; 258 base::string16 accessible_name_;
252 259
253 DISALLOW_COPY_AND_ASSIGN(NonClientView); 260 DISALLOW_COPY_AND_ASSIGN(NonClientView);
254 }; 261 };
255 262
256 } // namespace views 263 } // namespace views
257 264
258 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 265 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/mus/window_manager_connection.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698