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

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

Issue 191783002: Reorder View Textfield and Omnibox overrides. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 9 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 | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.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 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 35 matching lines...) Expand 10 before | Expand all | Expand 10 after
46 CommandUpdater* command_updater, 46 CommandUpdater* command_updater,
47 bool popup_window_mode, 47 bool popup_window_mode,
48 LocationBarView* location_bar, 48 LocationBarView* location_bar,
49 const gfx::FontList& font_list); 49 const gfx::FontList& font_list);
50 virtual ~OmniboxViewViews(); 50 virtual ~OmniboxViewViews();
51 51
52 // Initialize, create the underlying views, etc; 52 // Initialize, create the underlying views, etc;
53 void Init(); 53 void Init();
54 54
55 // views::Textfield: 55 // views::Textfield:
56 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
57 virtual const char* GetClassName() const OVERRIDE; 56 virtual const char* GetClassName() const OVERRIDE;
58 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
59 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
60 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE; 57 virtual bool OnMousePressed(const ui::MouseEvent& event) OVERRIDE;
61 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE; 58 virtual bool OnMouseDragged(const ui::MouseEvent& event) OVERRIDE;
62 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE; 59 virtual void OnMouseReleased(const ui::MouseEvent& event) OVERRIDE;
63 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE; 60 virtual bool OnKeyPressed(const ui::KeyEvent& event) OVERRIDE;
64 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE; 61 virtual bool OnKeyReleased(const ui::KeyEvent& event) OVERRIDE;
62 virtual void OnGestureEvent(ui::GestureEvent* event) OVERRIDE;
63 virtual void AboutToRequestFocusFromTabTraversal(bool reverse) OVERRIDE;
65 virtual bool SkipDefaultKeyEventProcessing( 64 virtual bool SkipDefaultKeyEventProcessing(
66 const ui::KeyEvent& event) OVERRIDE; 65 const ui::KeyEvent& event) OVERRIDE;
66 virtual void GetAccessibleState(ui::AXViewState* state) OVERRIDE;
67 virtual void OnFocus() OVERRIDE; 67 virtual void OnFocus() OVERRIDE;
68 virtual void OnBlur() OVERRIDE; 68 virtual void OnBlur() OVERRIDE;
69 virtual base::string16 GetSelectionClipboardText() const OVERRIDE; 69 virtual base::string16 GetSelectionClipboardText() const OVERRIDE;
70 70
71 // OmniboxView: 71 // OmniboxView:
72 virtual void SaveStateToTab(content::WebContents* tab) OVERRIDE; 72 virtual void SaveStateToTab(content::WebContents* tab) OVERRIDE;
73 virtual void OnTabChanged(const content::WebContents* web_contents) OVERRIDE; 73 virtual void OnTabChanged(const content::WebContents* web_contents) OVERRIDE;
74 virtual void Update() OVERRIDE; 74 virtual void Update() OVERRIDE;
75 virtual base::string16 GetText() const OVERRIDE; 75 virtual base::string16 GetText() const OVERRIDE;
76 virtual void SetUserText(const base::string16& text, 76 virtual void SetUserText(const base::string16& text,
(...skipping 124 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 201
202 // Indicates if we want to select all text in the omnibox when we get a 202 // Indicates if we want to select all text in the omnibox when we get a
203 // GESTURE_TAP. We want to select all only when the textfield is not in focus 203 // GESTURE_TAP. We want to select all only when the textfield is not in focus
204 // and gets a tap. So we use this variable to remember focus state before tap. 204 // and gets a tap. So we use this variable to remember focus state before tap.
205 bool select_all_on_gesture_tap_; 205 bool select_all_on_gesture_tap_;
206 206
207 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 207 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
208 }; 208 };
209 209
210 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 210 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/omnibox/omnibox_view_views.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698