OLD | NEW |
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> |
11 | 11 |
12 #include "base/compiler_specific.h" | 12 #include "base/compiler_specific.h" |
13 #include "base/task.h" | 13 #include "base/task.h" |
14 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 14 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
15 #include "chrome/browser/extensions/extension_context_menu_model.h" | 15 #include "chrome/browser/extensions/extension_context_menu_model.h" |
16 #include "chrome/browser/first_run/first_run.h" | 16 #include "chrome/browser/first_run/first_run.h" |
17 #include "chrome/browser/prefs/pref_member.h" | 17 #include "chrome/browser/prefs/pref_member.h" |
18 #include "chrome/browser/search_engines/template_url_service_observer.h" | 18 #include "chrome/browser/search_engines/template_url_service_observer.h" |
19 #include "chrome/browser/ui/omnibox/location_bar.h" | 19 #include "chrome/browser/ui/omnibox/location_bar.h" |
20 #include "chrome/browser/ui/toolbar/toolbar_model.h" | 20 #include "chrome/browser/ui/toolbar/toolbar_model.h" |
21 #include "chrome/browser/ui/views/dropdown_bar_host.h" | 21 #include "chrome/browser/ui/views/dropdown_bar_host.h" |
22 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" | 22 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" |
23 #include "chrome/browser/ui/views/extensions/extension_popup.h" | 23 #include "chrome/browser/ui/views/extensions/extension_popup.h" |
24 #include "ui/gfx/font.h" | 24 #include "ui/gfx/font.h" |
25 #include "ui/gfx/rect.h" | 25 #include "ui/gfx/rect.h" |
26 #include "ui/views/controls/native/native_view_host.h" | 26 #include "ui/views/controls/native/native_view_host.h" |
27 #include "views/drag_controller.h" | 27 #include "ui/views/drag_controller.h" |
28 | 28 |
29 #if defined(USE_AURA) | 29 #if defined(USE_AURA) |
30 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" | 30 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" |
31 #elif defined(OS_WIN) | 31 #elif defined(OS_WIN) |
32 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" | 32 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" |
33 #elif defined(TOOLKIT_USES_GTK) | 33 #elif defined(TOOLKIT_USES_GTK) |
34 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h" | 34 #include "chrome/browser/ui/gtk/omnibox/omnibox_view_gtk.h" |
35 #endif | 35 #endif |
36 | 36 |
37 class Browser; | 37 class Browser; |
(...skipping 387 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
425 // While animating, the host clips the widget and draws only the bottom | 425 // 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 | 426 // 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 | 427 // the widget so that we can draw the curved edges that attach to the toolbar |
428 // in the right location. | 428 // in the right location. |
429 int animation_offset_; | 429 int animation_offset_; |
430 | 430 |
431 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 431 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
432 }; | 432 }; |
433 | 433 |
434 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 434 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
OLD | NEW |