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

Side by Side Diff: ui/views/controls/button/menu_button.h

Issue 10824295: Rid the world of the last of views::Event types: TouchEvent, GestureEvent, MouseWheelEvent, ScrollE… (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/controls/button/custom_button.cc ('k') | ui/views/controls/button/menu_button.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_CONTROLS_BUTTON_MENU_BUTTON_H_ 5 #ifndef UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
6 #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_ 6 #define UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/string16.h" 10 #include "base/string16.h"
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
55 55
56 // Overridden from TextButton for the potential use of a drop marker. 56 // Overridden from TextButton for the potential use of a drop marker.
57 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE; 57 virtual void PaintButton(gfx::Canvas* canvas, PaintButtonMode mode) OVERRIDE;
58 58
59 // Overridden from View: 59 // Overridden from View:
60 virtual gfx::Size GetPreferredSize() OVERRIDE; 60 virtual gfx::Size GetPreferredSize() OVERRIDE;
61 virtual std::string GetClassName() const OVERRIDE; 61 virtual std::string GetClassName() const OVERRIDE;
62 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 62 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
63 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 63 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
64 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE; 64 virtual void OnMouseExited(const ui::MouseEvent& event) OVERRIDE;
65 virtual ui::GestureStatus OnGestureEvent(const GestureEvent& event) OVERRIDE; 65 virtual ui::GestureStatus OnGestureEvent(
66 const ui::GestureEvent& event) OVERRIDE;
66 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 67 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
67 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; 68 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE;
68 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 69 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
69 70
70 protected: 71 protected:
71 // True if the menu is currently visible. 72 // True if the menu is currently visible.
72 bool menu_visible_; 73 bool menu_visible_;
73 74
74 // Offset of the associated menu position. 75 // Offset of the associated menu position.
75 gfx::Point menu_offset_; 76 gfx::Point menu_offset_;
(...skipping 26 matching lines...) Expand all
102 // If non-null the destuctor sets this to true. This is set while the menu is 103 // If non-null the destuctor sets this to true. This is set while the menu is
103 // showing and used to detect if the menu was deleted while running. 104 // showing and used to detect if the menu was deleted while running.
104 bool* destroyed_flag_; 105 bool* destroyed_flag_;
105 106
106 DISALLOW_COPY_AND_ASSIGN(MenuButton); 107 DISALLOW_COPY_AND_ASSIGN(MenuButton);
107 }; 108 };
108 109
109 } // namespace views 110 } // namespace views
110 111
111 #endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_ 112 #endif // UI_VIEWS_CONTROLS_BUTTON_MENU_BUTTON_H_
OLDNEW
« no previous file with comments | « ui/views/controls/button/custom_button.cc ('k') | ui/views/controls/button/menu_button.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698