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

Side by Side Diff: chrome/browser/ui/views/omnibox/omnibox_view_views.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
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 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual bool OnAfterPossibleChange() OVERRIDE; 118 virtual bool OnAfterPossibleChange() OVERRIDE;
119 virtual gfx::NativeView GetNativeView() const OVERRIDE; 119 virtual gfx::NativeView GetNativeView() const OVERRIDE;
120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE; 120 virtual gfx::NativeView GetRelativeWindowForPopup() const OVERRIDE;
121 virtual void SetInstantSuggestion(const string16& input, 121 virtual void SetInstantSuggestion(const string16& input,
122 bool animate_to_complete) OVERRIDE; 122 bool animate_to_complete) OVERRIDE;
123 virtual string16 GetInstantSuggestion() const OVERRIDE; 123 virtual string16 GetInstantSuggestion() const OVERRIDE;
124 virtual int TextWidth() const OVERRIDE; 124 virtual int TextWidth() const OVERRIDE;
125 virtual bool IsImeComposing() const OVERRIDE; 125 virtual bool IsImeComposing() const OVERRIDE;
126 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE; 126 virtual int GetMaxEditWidth(int entry_width) const OVERRIDE;
127 virtual views::View* AddToView(views::View* parent) OVERRIDE; 127 virtual views::View* AddToView(views::View* parent) OVERRIDE;
128 virtual int OnPerformDrop(const views::DropTargetEvent& event) OVERRIDE; 128 virtual int OnPerformDrop(const ui::DropTargetEvent& event) OVERRIDE;
129 virtual gfx::Font GetFont() OVERRIDE; 129 virtual gfx::Font GetFont() OVERRIDE;
130 virtual int WidthOfTextAfterCursor() OVERRIDE; 130 virtual int WidthOfTextAfterCursor() OVERRIDE;
131 131
132 // views::TextfieldController: 132 // views::TextfieldController:
133 virtual void ContentsChanged(views::Textfield* sender, 133 virtual void ContentsChanged(views::Textfield* sender,
134 const string16& new_contents) OVERRIDE; 134 const string16& new_contents) OVERRIDE;
135 virtual bool HandleKeyEvent(views::Textfield* sender, 135 virtual bool HandleKeyEvent(views::Textfield* sender,
136 const ui::KeyEvent& key_event) OVERRIDE; 136 const ui::KeyEvent& key_event) OVERRIDE;
137 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE; 137 virtual void OnBeforeUserAction(views::Textfield* sender) OVERRIDE;
138 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE; 138 virtual void OnAfterUserAction(views::Textfield* sender) OVERRIDE;
(...skipping 59 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