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

Side by Side Diff: chrome/browser/ui/views/frame/glass_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_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_non_client_frame_view.h" 9 #include "chrome/browser/ui/views/frame/browser_non_client_frame_view.h"
10 #include "content/public/browser/notification_observer.h" 10 #include "content/public/browser/notification_observer.h"
(...skipping 26 matching lines...) Expand all
37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask) 37 virtual void GetWindowMask(const gfx::Size& size, gfx::Path* window_mask)
38 OVERRIDE {} 38 OVERRIDE {}
39 virtual void ResetWindowControls() OVERRIDE {} 39 virtual void ResetWindowControls() OVERRIDE {}
40 virtual void UpdateWindowIcon() OVERRIDE {} 40 virtual void UpdateWindowIcon() OVERRIDE {}
41 virtual void UpdateWindowTitle() OVERRIDE {} 41 virtual void UpdateWindowTitle() OVERRIDE {}
42 42
43 protected: 43 protected:
44 // Overridden from views::View: 44 // Overridden from views::View:
45 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 45 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
46 virtual void Layout() OVERRIDE; 46 virtual void Layout() OVERRIDE;
47 virtual bool HitTestRect(const gfx::Rect& rect) const OVERRIDE; 47 virtual bool HitTestRect(const gfx::RectF& rect) const OVERRIDE;
48 48
49 // Overidden from views::ButtonListener: 49 // Overidden from views::ButtonListener:
50 virtual void ButtonPressed(views::Button* sender, 50 virtual void ButtonPressed(views::Button* sender,
51 const ui::Event& event) OVERRIDE; 51 const ui::Event& event) OVERRIDE;
52 52
53 private: 53 private:
54 // Returns the thickness of the border that makes up the window frame edges. 54 // Returns the thickness of the border that makes up the window frame edges.
55 // This does not include any client edge. 55 // This does not include any client edge.
56 int FrameBorderThickness() const; 56 int FrameBorderThickness() const;
57 57
(...skipping 47 matching lines...) Expand 10 before | Expand all | Expand 10 after
105 content::NotificationRegistrar registrar_; 105 content::NotificationRegistrar registrar_;
106 106
107 static const int kThrobberIconCount = 24; 107 static const int kThrobberIconCount = 24;
108 static HICON throbber_icons_[kThrobberIconCount]; 108 static HICON throbber_icons_[kThrobberIconCount];
109 static void InitThrobberIcons(); 109 static void InitThrobberIcons();
110 110
111 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView); 111 DISALLOW_COPY_AND_ASSIGN(GlassBrowserFrameView);
112 }; 112 };
113 113
114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_ 114 #endif // CHROME_BROWSER_UI_VIEWS_FRAME_GLASS_BROWSER_FRAME_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698