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

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

Issue 265713007: views: Update event-related API to use PointF/RectF instead of Point/Rect. Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 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 | 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_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 9
10 namespace gfx { 10 namespace gfx {
(...skipping 61 matching lines...) Expand 10 before | Expand all | Expand 10 after
72 // hittests for regions that are partially obscured by the ClientView, e.g. 72 // hittests for regions that are partially obscured by the ClientView, e.g.
73 // HTSYSMENU. 73 // HTSYSMENU.
74 virtual int NonClientHitTest(const gfx::Point& point) = 0; 74 virtual int NonClientHitTest(const gfx::Point& point) = 0;
75 virtual void GetWindowMask(const gfx::Size& size, 75 virtual void GetWindowMask(const gfx::Size& size,
76 gfx::Path* window_mask) = 0; 76 gfx::Path* window_mask) = 0;
77 virtual void ResetWindowControls() = 0; 77 virtual void ResetWindowControls() = 0;
78 virtual void UpdateWindowIcon() = 0; 78 virtual void UpdateWindowIcon() = 0;
79 virtual void UpdateWindowTitle() = 0; 79 virtual void UpdateWindowTitle() = 0;
80 80
81 // Overridden from View: 81 // Overridden from View:
82 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 82 virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
83 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 83 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
84 virtual const char* GetClassName() const OVERRIDE; 84 virtual const char* GetClassName() const OVERRIDE;
85 85
86 protected: 86 protected:
87 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 87 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
88 88
89 NonClientFrameView(); 89 NonClientFrameView();
90 90
91 private: 91 private:
92 // Prevents the non-client frame view from being rendered as inactive when 92 // Prevents the non-client frame view from being rendered as inactive when
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
205 void SetAccessibleName(const base::string16& name); 205 void SetAccessibleName(const base::string16& name);
206 206
207 // NonClientView, View overrides: 207 // NonClientView, View overrides:
208 virtual gfx::Size GetPreferredSize() OVERRIDE; 208 virtual gfx::Size GetPreferredSize() OVERRIDE;
209 virtual gfx::Size GetMinimumSize() OVERRIDE; 209 virtual gfx::Size GetMinimumSize() OVERRIDE;
210 virtual gfx::Size GetMaximumSize() OVERRIDE; 210 virtual gfx::Size GetMaximumSize() OVERRIDE;
211 virtual void Layout() OVERRIDE; 211 virtual void Layout() OVERRIDE;
212 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 212 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
213 virtual const char* GetClassName() const OVERRIDE; 213 virtual const char* GetClassName() const OVERRIDE;
214 214
215 virtual views::View* GetEventHandlerForRect(const gfx::Rect& rect) OVERRIDE; 215 virtual views::View* GetEventHandlerForRect(const gfx::RectF& rect) OVERRIDE;
216 virtual views::View* GetTooltipHandlerForPoint( 216 virtual views::View* GetTooltipHandlerForPoint(
217 const gfx::Point& point) OVERRIDE; 217 const gfx::Point& point) OVERRIDE;
218 218
219 protected: 219 protected:
220 // NonClientView, View overrides: 220 // NonClientView, View overrides:
221 virtual void ViewHierarchyChanged( 221 virtual void ViewHierarchyChanged(
222 const ViewHierarchyChangedDetails& details) OVERRIDE; 222 const ViewHierarchyChangedDetails& details) OVERRIDE;
223 223
224 private: 224 private:
225 // A ClientView object or subclass, responsible for sizing the contents view 225 // A ClientView object or subclass, responsible for sizing the contents view
(...skipping 12 matching lines...) Expand all
238 238
239 // The accessible name of this view. 239 // The accessible name of this view.
240 base::string16 accessible_name_; 240 base::string16 accessible_name_;
241 241
242 DISALLOW_COPY_AND_ASSIGN(NonClientView); 242 DISALLOW_COPY_AND_ASSIGN(NonClientView);
243 }; 243 };
244 244
245 } // namespace views 245 } // namespace views
246 246
247 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_ 247 #endif // UI_VIEWS_WINDOW_NON_CLIENT_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698