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

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

Issue 10827271: Replace views::Event with ui::Event. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
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 | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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_CUSTOM_FRAME_VIEW_H_ 5 #ifndef UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 6 #define UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "base/compiler_specific.h" 9 #include "base/compiler_specific.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 gfx::Path* window_mask) OVERRIDE; 46 gfx::Path* window_mask) OVERRIDE;
47 virtual void ResetWindowControls() OVERRIDE; 47 virtual void ResetWindowControls() OVERRIDE;
48 virtual void UpdateWindowIcon() OVERRIDE; 48 virtual void UpdateWindowIcon() OVERRIDE;
49 49
50 // Overridden from View: 50 // Overridden from View:
51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 51 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
52 virtual void Layout() OVERRIDE; 52 virtual void Layout() OVERRIDE;
53 virtual gfx::Size GetPreferredSize() OVERRIDE; 53 virtual gfx::Size GetPreferredSize() OVERRIDE;
54 54
55 // Overridden from ButtonListener: 55 // Overridden from ButtonListener:
56 virtual void ButtonPressed(Button* sender, const Event& event) OVERRIDE; 56 virtual void ButtonPressed(Button* sender, const ui::Event& event) OVERRIDE;
57 57
58 private: 58 private:
59 // Returns the thickness of the border that makes up the window frame edges. 59 // Returns the thickness of the border that makes up the window frame edges.
60 // This does not include any client edge. 60 // This does not include any client edge.
61 int FrameBorderThickness() const; 61 int FrameBorderThickness() const;
62 62
63 // Returns the thickness of the entire nonclient left, right, and bottom 63 // Returns the thickness of the entire nonclient left, right, and bottom
64 // borders, including both the window frame and any client edge. 64 // borders, including both the window frame and any client edge.
65 int NonClientBorderThickness() const; 65 int NonClientBorderThickness() const;
66 66
(...skipping 66 matching lines...) Expand 10 before | Expand all | Expand 10 after
133 133
134 // Background painter for the window frame. 134 // Background painter for the window frame.
135 scoped_ptr<FrameBackground> frame_background_; 135 scoped_ptr<FrameBackground> frame_background_;
136 136
137 DISALLOW_COPY_AND_ASSIGN(CustomFrameView); 137 DISALLOW_COPY_AND_ASSIGN(CustomFrameView);
138 }; 138 };
139 139
140 } // namespace views 140 } // namespace views
141 141
142 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_ 142 #endif // UI_VIEWS_WINDOW_CUSTOM_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « ui/views/widget/widget.cc ('k') | ui/views/window/custom_frame_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698