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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_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 CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "chrome/browser/ui/view_ids.h" 9 #include "chrome/browser/ui/view_ids.h"
10 #include "chrome/browser/ui/views/frame/browser_frame.h" 10 #include "chrome/browser/ui/views/frame/browser_frame.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 virtual gfx::Rect GetWindowBoundsForClientBounds( 52 virtual gfx::Rect GetWindowBoundsForClientBounds(
53 const gfx::Rect& client_bounds) const OVERRIDE; 53 const gfx::Rect& client_bounds) const OVERRIDE;
54 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 54 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
55 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 55 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
56 OVERRIDE; 56 OVERRIDE;
57 virtual void ResetWindowControls() OVERRIDE; 57 virtual void ResetWindowControls() OVERRIDE;
58 virtual void UpdateWindowIcon() OVERRIDE; 58 virtual void UpdateWindowIcon() OVERRIDE;
59 virtual void UpdateWindowTitle() OVERRIDE; 59 virtual void UpdateWindowTitle() OVERRIDE;
60 60
61 // Overridden from views::View: 61 // Overridden from views::View:
62 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 62 virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
63 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE; 63 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
64 64
65 // Overridden from views::ButtonListener: 65 // Overridden from views::ButtonListener:
66 virtual void ButtonPressed(views::Button* sender, const ui::Event& event) 66 virtual void ButtonPressed(views::Button* sender, const ui::Event& event)
67 OVERRIDE; 67 OVERRIDE;
68 68
69 // Overridden from views::MenuButtonListener: 69 // Overridden from views::MenuButtonListener:
70 virtual void OnMenuButtonClicked(views::View* source, const gfx::Point& point) 70 virtual void OnMenuButtonClicked(views::View* source, const gfx::Point& point)
71 OVERRIDE; 71 OVERRIDE;
72 72
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
172 // Background painter for the window frame. 172 // Background painter for the window frame.
173 scoped_ptr<views::FrameBackground> frame_background_; 173 scoped_ptr<views::FrameBackground> frame_background_;
174 174
175 // Observer that handles platform dependent configuration. 175 // Observer that handles platform dependent configuration.
176 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_; 176 scoped_ptr<OpaqueBrowserFrameViewPlatformSpecific> platform_observer_;
177 177
178 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 178 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
179 }; 179 };
180 180
181 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 181 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698