| OLD | NEW |
| 1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| 11 #include "base/task.h" | 11 #include "base/task.h" |
| 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 12 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 13 #include "chrome/browser/extensions/extension_context_menu_model.h" | 13 #include "chrome/browser/extensions/extension_context_menu_model.h" |
| 14 #include "chrome/browser/first_run.h" | 14 #include "chrome/browser/first_run.h" |
| 15 #include "chrome/browser/location_bar.h" | 15 #include "chrome/browser/location_bar.h" |
| 16 #include "chrome/browser/tab_contents/tab_contents.h" | 16 #include "chrome/browser/tab_contents/tab_contents.h" |
| 17 #include "chrome/browser/toolbar_model.h" | 17 #include "chrome/browser/toolbar_model.h" |
| 18 #include "chrome/browser/views/extensions/extension_popup.h" | 18 #include "chrome/browser/views/extensions/extension_popup.h" |
| 19 #include "chrome/common/notification_observer.h" | 19 #include "chrome/common/notification_observer.h" |
| 20 #include "chrome/common/notification_registrar.h" | 20 #include "chrome/common/notification_registrar.h" |
| 21 #include "gfx/font.h" | 21 #include "gfx/font.h" |
| 22 #include "gfx/rect.h" | 22 #include "gfx/rect.h" |
| 23 #include "views/controls/native/native_view_host.h" | 23 #include "views/controls/native/native_view_host.h" |
| 24 | 24 |
| 25 #if defined(OS_WIN) | 25 #if defined(OS_WIN) |
| 26 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 26 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| 27 #else | 27 #else |
| 28 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" | 28 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" |
| 29 #include "chrome/browser/gtk/accessible_widget_helper_gtk.h" |
| 29 #endif | 30 #endif |
| 30 | 31 |
| 31 class Browser; | 32 class Browser; |
| 32 class CommandUpdater; | 33 class CommandUpdater; |
| 33 class ContentSettingImageView; | 34 class ContentSettingImageView; |
| 34 class EVBubbleView; | 35 class EVBubbleView; |
| 35 class ExtensionAction; | 36 class ExtensionAction; |
| 36 class GURL; | 37 class GURL; |
| 37 class KeywordHintView; | 38 class KeywordHintView; |
| 38 class LocationIconView; | 39 class LocationIconView; |
| (...skipping 310 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 349 Mode mode_; | 350 Mode mode_; |
| 350 | 351 |
| 351 // Counts the number of times consumers have asked us to be hidden. | 352 // Counts the number of times consumers have asked us to be hidden. |
| 352 // We should actually be hidden iff this is greater than zero. | 353 // We should actually be hidden iff this is greater than zero. |
| 353 int force_hidden_count_; | 354 int force_hidden_count_; |
| 354 | 355 |
| 355 // True if we should show a focus rect while the location entry field is | 356 // True if we should show a focus rect while the location entry field is |
| 356 // focused. Used when the toolbar is in full keyboard accessibility mode. | 357 // focused. Used when the toolbar is in full keyboard accessibility mode. |
| 357 bool show_focus_rect_; | 358 bool show_focus_rect_; |
| 358 | 359 |
| 360 #if defined(OS_LINUX) |
| 361 scoped_ptr<AccessibleWidgetHelper> accessible_widget_helper_; |
| 362 #endif |
| 363 |
| 359 // Used to schedule a task for the first run info bubble. | 364 // Used to schedule a task for the first run info bubble. |
| 360 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; | 365 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; |
| 361 | 366 |
| 362 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 367 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 363 }; | 368 }; |
| 364 | 369 |
| 365 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 370 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |