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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.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: remove empty line 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
161 161
162 #if defined(OS_WIN) || defined(USE_AURA) 162 #if defined(OS_WIN) || defined(USE_AURA)
163 // Invoked from OmniboxViewWin to show the instant suggestion. 163 // Invoked from OmniboxViewWin to show the instant suggestion.
164 void SetInstantSuggestion(const string16& text, 164 void SetInstantSuggestion(const string16& text,
165 bool animate_to_complete); 165 bool animate_to_complete);
166 166
167 // Returns the current instant suggestion text. 167 // Returns the current instant suggestion text.
168 string16 GetInstantSuggestion() const; 168 string16 GetInstantSuggestion() const;
169 #endif 169 #endif
170 170
171 // Sets whether the omnibox can accept focus.
sky 2011/12/07 22:23:33 We've generally used LocationEntry in this class w
oshima 2011/12/08 19:13:01 Changed to LocationEntry.
172 void SetOmniboxFocusable(bool focusable);
173
174 // Returns true if the omnibox is focusable and visible in the root view.
175 bool IsOmniboxFocusableInRootView() const;
176
171 // Sizing functions 177 // Sizing functions
172 virtual gfx::Size GetPreferredSize() OVERRIDE; 178 virtual gfx::Size GetPreferredSize() OVERRIDE;
173 179
174 // Layout and Painting functions 180 // Layout and Painting functions
175 virtual void Layout() OVERRIDE; 181 virtual void Layout() OVERRIDE;
176 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; 182 virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE;
177 183
178 // No focus border for the location bar, the caret is enough. 184 // No focus border for the location bar, the caret is enough.
179 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE { } 185 virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE { }
180 186
(...skipping 244 matching lines...) Expand 10 before | Expand all | Expand 10 after
425 // While animating, the host clips the widget and draws only the bottom 431 // While animating, the host clips the widget and draws only the bottom
426 // part of it. The view needs to know the pixel offset at which we are drawing 432 // part of it. The view needs to know the pixel offset at which we are drawing
427 // the widget so that we can draw the curved edges that attach to the toolbar 433 // the widget so that we can draw the curved edges that attach to the toolbar
428 // in the right location. 434 // in the right location.
429 int animation_offset_; 435 int animation_offset_;
430 436
431 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); 437 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView);
432 }; 438 };
433 439
434 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 440 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698