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

Unified Diff: chrome/browser/views/location_bar/location_bar_view.h

Issue 2817022: Small tweaks to improve toolbar keyboard accessibility: Put focus rects... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 10 years, 6 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/views/location_bar/location_bar_view.h
===================================================================
--- chrome/browser/views/location_bar/location_bar_view.h (revision 50343)
+++ chrome/browser/views/location_bar/location_bar_view.h (working copy)
@@ -59,6 +59,9 @@
public views::DragController,
public AutocompleteEditController {
public:
+ // The location bar view's class name.
+ static const char kViewClassName[];
+
class Delegate {
public:
// Should return the current tab contents.
@@ -150,6 +153,13 @@
// to close its popup.
virtual void VisibleBoundsInRootChanged();
+ // Set if we should show a focus rect while the location entry field is
+ // focused. Used when the toolbar is in full keyboard accessibility mode.
+ void set_show_focus_rect(bool show) {
sky 2010/06/21 20:55:32 Since you've got a SchedulePaint in here, it's no
+ show_focus_rect_ = show;
+ SchedulePaint();
+ }
+
#if defined(OS_WIN)
// Event Handlers
virtual bool OnMousePressed(const views::MouseEvent& event);
@@ -170,6 +180,7 @@
virtual std::wstring GetTitle() const;
// Overridden from views::View:
+ virtual std::string GetClassName() const;
virtual bool SkipDefaultKeyEventProcessing(const views::KeyEvent& e);
virtual bool GetAccessibleRole(AccessibilityTypes::Role* role);
@@ -343,6 +354,10 @@
// We should actually be hidden iff this is greater than zero.
int force_hidden_count_;
+ // True if we should show a focus rect while the location entry field is
+ // focused. Used when the toolbar is in full keyboard accessibility mode.
+ bool show_focus_rect_;
+
// Used schedule a task for the first run info bubble.
ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_;

Powered by Google App Engine
This is Rietveld 408576698