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

Side by Side Diff: chrome/browser/ui/views/frame/glass_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: 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_GLASS_BROWSER_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "chrome/browser/ui/views/frame/browser_frame_win.h" 9 #include "chrome/browser/ui/views/frame/browser_frame_win.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 24 matching lines...) Expand all
35 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE; 35 virtual int NonClientHitTest(const gfx::Point& point) OVERRIDE;
36 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 36 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
37 OVERRIDE { } 37 OVERRIDE { }
38 virtual void ResetWindowControls() OVERRIDE { } 38 virtual void ResetWindowControls() OVERRIDE { }
39 virtual void UpdateWindowIcon() OVERRIDE { } 39 virtual void UpdateWindowIcon() OVERRIDE { }
40 40
41 protected: 41 protected:
42 // Overridden from views::View: 42 // Overridden from views::View:
43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 43 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
44 virtual void Layout() OVERRIDE; 44 virtual void Layout() OVERRIDE;
45 virtual bool HitTest(const gfx::Point& l) const OVERRIDE; 45 virtual bool HitTest(const gfx::Rect& r) const OVERRIDE;
46 46
47 private: 47 private:
48 // Returns the thickness of the border that makes up the window frame edges. 48 // Returns the thickness of the border that makes up the window frame edges.
49 // This does not include any client edge. 49 // This does not include any client edge.
50 int FrameBorderThickness() const; 50 int FrameBorderThickness() const;
51 51
52 // Returns the thickness of the entire nonclient left, right, and bottom 52 // Returns the thickness of the entire nonclient left, right, and bottom
53 // borders, including both the window frame and any client edge. 53 // borders, including both the window frame and any client edge.
54 int NonClientBorderThickness() const; 54 int NonClientBorderThickness() const;
55 55
(...skipping 43 matching lines...) Expand 10 before | Expand all | Expand 10 after
99 content::NotificationRegistrar registrar_; 99 content::NotificationRegistrar registrar_;
100 100
101 static const int kThrobberIconCount = 24; 101 static const int kThrobberIconCount = 24;
102 static HICON throbber_icons_[kThrobberIconCount]; 102 static HICON throbber_icons_[kThrobberIconCount];
103 static void InitThrobberIcons(); 103 static void InitThrobberIcons();
104 104
105 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); 105 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView);
106 }; 106 };
107 107
108 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 108 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698