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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.h

Issue 10832282: Replace views::MouseEvent with ui::MouseEvent (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
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_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 6 #define CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/basictypes.h" 10 #include "base/basictypes.h"
(...skipping 52 matching lines...) Expand 10 before | Expand all | Expand 10 after
63 void SetBaseColor(); 63 void SetBaseColor();
64 64
65 // Called after key even is handled either by HandleKeyEvent or by Textfield. 65 // Called after key even is handled either by HandleKeyEvent or by Textfield.
66 bool HandleAfterKeyEvent(const ui::KeyEvent& event, bool handled); 66 bool HandleAfterKeyEvent(const ui::KeyEvent& event, bool handled);
67 67
68 // Called when KeyRelease event is generated on textfield. 68 // Called when KeyRelease event is generated on textfield.
69 bool HandleKeyReleaseEvent(const ui::KeyEvent& event); 69 bool HandleKeyReleaseEvent(const ui::KeyEvent& event);
70 70
71 // Called when mouse events are generated on the textfield. 71 // Called when mouse events are generated on the textfield.
72 // The views::Textfield implementations will be executed first. 72 // The views::Textfield implementations will be executed first.
73 void HandleMousePressEvent(const views::MouseEvent& event); 73 void HandleMousePressEvent(const ui::MouseEvent& event);
74 void HandleMouseDragEvent(const views::MouseEvent& event); 74 void HandleMouseDragEvent(const ui::MouseEvent& event);
75 void HandleMouseReleaseEvent(const views::MouseEvent& event); 75 void HandleMouseReleaseEvent(const ui::MouseEvent& event);
76 76
77 // Called when Focus is set/unset on textfield. 77 // Called when Focus is set/unset on textfield.
78 void HandleFocusIn(); 78 void HandleFocusIn();
79 void HandleFocusOut(); 79 void HandleFocusOut();
80 80
81 // Sets whether the location entry can accept focus. 81 // Sets whether the location entry can accept focus.
82 void SetLocationEntryFocusable(bool focusable); 82 void SetLocationEntryFocusable(bool focusable);
83 83
84 // Returns true if the location entry is focusable and visible in 84 // Returns true if the location entry is focusable and visible in
85 // the root view. 85 // the root view.
(...skipping 112 matching lines...) Expand 10 before | Expand all | Expand 10 after
198 // Should we select all the text when we see the mouse button get released? 198 // Should we select all the text when we see the mouse button get released?
199 // We select in response to a click that focuses the omnibox, but we defer 199 // We select in response to a click that focuses the omnibox, but we defer
200 // until release, setting this variable back to false if we saw a drag, to 200 // until release, setting this variable back to false if we saw a drag, to
201 // allow the user to select just a portion of the text. 201 // allow the user to select just a portion of the text.
202 bool select_all_on_mouse_release_; 202 bool select_all_on_mouse_release_;
203 203
204 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 204 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
205 }; 205 };
206 206
207 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 207 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/omnibox/omnibox_popup_contents_view.cc ('k') | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698