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

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

Issue 8832002: Aura: Set focusable on textfield but not on location bar (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: sync Created 9 years 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 // Called when KeyRelease event is generated on textfield. 61 // Called when KeyRelease event is generated on textfield.
62 bool HandleKeyReleaseEvent(const views::KeyEvent& event); 62 bool HandleKeyReleaseEvent(const views::KeyEvent& event);
63 63
64 // Called when the mouse press event is generated on textfield. 64 // Called when the mouse press event is generated on textfield.
65 bool HandleMousePressEvent(const views::MouseEvent& event); 65 bool HandleMousePressEvent(const views::MouseEvent& event);
66 66
67 // Called when Focus is set/unset on textfield. 67 // Called when Focus is set/unset on textfield.
68 void HandleFocusIn(); 68 void HandleFocusIn();
69 void HandleFocusOut(); 69 void HandleFocusOut();
70 70
71 // Sets whether the location entry can accept focus.
72 void SetLocationEntryFocusable(bool focusable);
73
74 // Returns true if the location entry is focusable and visible in
75 // the root view.
76 bool IsLocationEntryFocusableInRootView() const;
77
71 // Implements views::View 78 // Implements views::View
72 virtual void Layout() OVERRIDE; 79 virtual void Layout() OVERRIDE;
73 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE; 80 virtual void GetAccessibleState(ui::AccessibleViewState* state) OVERRIDE;
74 virtual std::string GetClassName() const OVERRIDE; 81 virtual std::string GetClassName() const OVERRIDE;
75 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE; 82 virtual void OnBoundsChanged(const gfx::Rect& previous_bounds) OVERRIDE;
76 83
77 // OmniboxView: 84 // OmniboxView:
78 virtual AutocompleteEditModel* model() OVERRIDE; 85 virtual AutocompleteEditModel* model() OVERRIDE;
79 virtual const AutocompleteEditModel* model() const OVERRIDE; 86 virtual const AutocompleteEditModel* model() const OVERRIDE;
80 87
(...skipping 106 matching lines...) Expand 10 before | Expand all | Expand 10 after
187 bool ime_composing_before_change_; 194 bool ime_composing_before_change_;
188 195
189 // Was the delete key pressed with an empty selection at the end of the edit? 196 // Was the delete key pressed with an empty selection at the end of the edit?
190 bool delete_at_end_pressed_; 197 bool delete_at_end_pressed_;
191 LocationBarView* location_bar_view_; 198 LocationBarView* location_bar_view_;
192 199
193 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews); 200 DISALLOW_COPY_AND_ASSIGN(OmniboxViewViews);
194 }; 201 };
195 202
196 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_ 203 #endif // CHROME_BROWSER_UI_VIEWS_OMNIBOX_OMNIBOX_VIEW_VIEWS_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/location_bar/location_bar_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