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

Side by Side Diff: chrome/browser/ui/views/frame/opaque_browser_frame_view.h

Issue 10827198: Change View::HitTest to View::HitTestRect (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed errors reported by trybots Created 8 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 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/views/frame/browser_frame.h" 9 #include "chrome/browser/ui/views/frame/browser_frame.h"
10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h" 10 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
60 const gfx::Rect& client_bounds) const OVERRIDE; 60 const gfx::Rect& client_bounds) const OVERRIDE;
61 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 61 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
62 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 62 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
63 OVERRIDE; 63 OVERRIDE;
64 virtual void ResetWindowControls() OVERRIDE; 64 virtual void ResetWindowControls() OVERRIDE;
65 virtual void UpdateWindowIcon() OVERRIDE; 65 virtual void UpdateWindowIcon() OVERRIDE;
66 66
67 // Overridden from views::View: 67 // Overridden from views::View:
68 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 68 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
69 virtual void Layout() OVERRIDE; 69 virtual void Layout() OVERRIDE;
70 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; 70 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE;
71 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 71 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
72 72
73 // Overridden from views::ButtonListener: 73 // Overridden from views::ButtonListener:
74 virtual void ButtonPressed(views::Button* sender, const views::Event& event) 74 virtual void ButtonPressed(views::Button* sender, const views::Event& event)
75 OVERRIDE; 75 OVERRIDE;
76 76
77 // Overridden from chrome::TabIconViewModel: 77 // Overridden from chrome::TabIconViewModel:
78 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; 78 virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
79 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE; 79 virtual gfx::ImageSkia GetFaviconForTabIconView() OVERRIDE;
80 80
(...skipping 87 matching lines...) Expand 10 before | Expand all | Expand 10 after
168 168
169 content::NotificationRegistrar registrar_; 169 content::NotificationRegistrar registrar_;
170 170
171 // Background painter for the window frame. 171 // Background painter for the window frame.
172 scoped_ptr<views::FrameBackground> frame_background_; 172 scoped_ptr<views::FrameBackground> frame_background_;
173 173
174 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView); 174 DISALLOW_COPY_AND_ASSIGN(OpaqueBrowserFrameView);
175 }; 175 };
176 176
177 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_ 177 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_OPAQUE_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/frame/glass_browser_frame_view.cc ('k') | chrome/browser/ui/views/frame/opaque_browser_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698