OLD | NEW |
1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_VIEW_H_ | 5 #ifndef CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ |
6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
11 #include "app/gfx/font.h" | 11 #include "app/gfx/font.h" |
12 #include "base/gfx/rect.h" | 12 #include "base/gfx/rect.h" |
13 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 13 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
14 #include "chrome/browser/location_bar.h" | 14 #include "chrome/browser/location_bar.h" |
15 #include "chrome/browser/tab_contents/tab_contents.h" | 15 #include "chrome/browser/tab_contents/tab_contents.h" |
16 #include "chrome/browser/toolbar_model.h" | 16 #include "chrome/browser/toolbar_model.h" |
17 #include "chrome/browser/views/info_bubble.h" | 17 #include "chrome/browser/views/info_bubble.h" |
18 #include "views/controls/image_view.h" | 18 #include "views/controls/image_view.h" |
19 #include "views/controls/label.h" | 19 #include "views/controls/label.h" |
| 20 #include "views/controls/native/native_view_host.h" |
20 #include "views/painter.h" | 21 #include "views/painter.h" |
21 | 22 |
22 #if defined(OS_WIN) | 23 #if defined(OS_WIN) |
23 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 24 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
24 #include "views/controls/hwnd_view.h" | |
25 #else | 25 #else |
26 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" | 26 #include "chrome/browser/autocomplete/autocomplete_edit_view_gtk.h" |
27 #include "views/controls/native_view_host_gtk.h" | |
28 #endif | 27 #endif |
29 | 28 |
30 class AutocompletePopupPositioner; | 29 class AutocompletePopupPositioner; |
31 class CommandUpdater; | 30 class CommandUpdater; |
32 class GURL; | 31 class GURL; |
33 class PageAction; | 32 class PageAction; |
34 class Profile; | 33 class Profile; |
35 | 34 |
36 ///////////////////////////////////////////////////////////////////////////// | 35 ///////////////////////////////////////////////////////////////////////////// |
37 // | 36 // |
(...skipping 422 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
460 // The user's desired disposition for how their input should be opened | 459 // The user's desired disposition for how their input should be opened |
461 WindowOpenDisposition disposition_; | 460 WindowOpenDisposition disposition_; |
462 | 461 |
463 // The transition type to use for the navigation | 462 // The transition type to use for the navigation |
464 PageTransition::Type transition_; | 463 PageTransition::Type transition_; |
465 | 464 |
466 // Font used by edit and some of the hints. | 465 // Font used by edit and some of the hints. |
467 gfx::Font font_; | 466 gfx::Font font_; |
468 | 467 |
469 // Location_entry view wrapper | 468 // Location_entry view wrapper |
470 #if defined(OS_WIN) | 469 views::NativeViewHost* location_entry_view_; |
471 views::HWNDView* location_entry_view_; | |
472 #else | |
473 views::NativeViewHostGtk* location_entry_view_; | |
474 #endif | |
475 | 470 |
476 // The following views are used to provide hints and remind the user as to | 471 // The following views are used to provide hints and remind the user as to |
477 // what is going in the edit. They are all added a children of the | 472 // what is going in the edit. They are all added a children of the |
478 // LocationBarView. At most one is visible at a time. Preference is | 473 // LocationBarView. At most one is visible at a time. Preference is |
479 // given to the keyword_view_, then hint_view_, then type_to_search_view_. | 474 // given to the keyword_view_, then hint_view_, then type_to_search_view_. |
480 | 475 |
481 // Shown if the user has selected a keyword. | 476 // Shown if the user has selected a keyword. |
482 SelectedKeywordView selected_keyword_view_; | 477 SelectedKeywordView selected_keyword_view_; |
483 | 478 |
484 // Shown if the selected url has a corresponding keyword. | 479 // Shown if the selected url has a corresponding keyword. |
(...skipping 16 matching lines...) Expand all Loading... |
501 bool popup_window_mode_; | 496 bool popup_window_mode_; |
502 | 497 |
503 // Used schedule a task for the first run info bubble. | 498 // Used schedule a task for the first run info bubble. |
504 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; | 499 ScopedRunnableMethodFactory<LocationBarView> first_run_bubble_; |
505 | 500 |
506 // The positioner that places the autocomplete popup. | 501 // The positioner that places the autocomplete popup. |
507 AutocompletePopupPositioner* popup_positioner_; | 502 AutocompletePopupPositioner* popup_positioner_; |
508 }; | 503 }; |
509 | 504 |
510 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ | 505 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ |
OLD | NEW |