| 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_GTK_LOCATION_BAR_VIEW_GTK_H_ | 5 #ifndef CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 6 #define CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| 7 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include <map> | 10 #include <map> |
| (...skipping 374 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 385 // edit, we save the input string so we can give it back to the browser on | 385 // edit, we save the input string so we can give it back to the browser on |
| 386 // the LocationBar interface via GetInputString(). | 386 // the LocationBar interface via GetInputString(). |
| 387 std::wstring location_input_; | 387 std::wstring location_input_; |
| 388 | 388 |
| 389 // The user's desired disposition for how their input should be opened. | 389 // The user's desired disposition for how their input should be opened. |
| 390 WindowOpenDisposition disposition_; | 390 WindowOpenDisposition disposition_; |
| 391 | 391 |
| 392 // The transition type to use for the navigation. | 392 // The transition type to use for the navigation. |
| 393 PageTransition::Type transition_; | 393 PageTransition::Type transition_; |
| 394 | 394 |
| 395 // Used schedule a task for the first run info bubble. | 395 // Used to schedule a task for the first run info bubble. |
| 396 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_; | 396 ScopedRunnableMethodFactory<LocationBarViewGtk> first_run_bubble_; |
| 397 | 397 |
| 398 // When true, the location bar view is read only and also is has a slightly | 398 // When true, the location bar view is read only and also is has a slightly |
| 399 // different presentation (font size / color). This is used for popups. | 399 // different presentation (font size / color). This is used for popups. |
| 400 bool popup_window_mode_; | 400 bool popup_window_mode_; |
| 401 | 401 |
| 402 // Provides colors and rendering mode. | 402 // Provides colors and rendering mode. |
| 403 GtkThemeProvider* theme_provider_; | 403 GtkThemeProvider* theme_provider_; |
| 404 | 404 |
| 405 NotificationRegistrar registrar_; | 405 NotificationRegistrar registrar_; |
| 406 | 406 |
| 407 // Width of the main |hbox_|. Used to properly elide the EV certificate. | 407 // Width of the main |hbox_|. Used to properly elide the EV certificate. |
| 408 int hbox_width_; | 408 int hbox_width_; |
| 409 | 409 |
| 410 // Width of the hbox that holds |tab_to_search_box_|, |location_entry_| and | 410 // Width of the hbox that holds |tab_to_search_box_|, |location_entry_| and |
| 411 // |tab_to_search_hint_|. | 411 // |tab_to_search_hint_|. |
| 412 int entry_box_width_; | 412 int entry_box_width_; |
| 413 | 413 |
| 414 // Indicate if |tab_to_search_box_| should be shown. | 414 // Indicate if |tab_to_search_box_| should be shown. |
| 415 bool show_selected_keyword_; | 415 bool show_selected_keyword_; |
| 416 | 416 |
| 417 // Indicate if |tab_to_search_hint_| should be shown. | 417 // Indicate if |tab_to_search_hint_| should be shown. |
| 418 bool show_keyword_hint_; | 418 bool show_keyword_hint_; |
| 419 | 419 |
| 420 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); | 420 DISALLOW_COPY_AND_ASSIGN(LocationBarViewGtk); |
| 421 }; | 421 }; |
| 422 | 422 |
| 423 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ | 423 #endif // CHROME_BROWSER_GTK_LOCATION_BAR_VIEW_GTK_H_ |
| OLD | NEW |