| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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> |
| (...skipping 12 matching lines...) Expand all Loading... |
| 23 #include "ui/gfx/rect.h" | 23 #include "ui/gfx/rect.h" |
| 24 #include "ui/views/controls/native/native_view_host.h" | 24 #include "ui/views/controls/native/native_view_host.h" |
| 25 #include "ui/views/drag_controller.h" | 25 #include "ui/views/drag_controller.h" |
| 26 | 26 |
| 27 #if defined(USE_AURA) | 27 #if defined(USE_AURA) |
| 28 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" | 28 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h" |
| 29 #elif defined(OS_WIN) | 29 #elif defined(OS_WIN) |
| 30 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" | 30 #include "chrome/browser/ui/views/omnibox/omnibox_view_win.h" |
| 31 #endif | 31 #endif |
| 32 | 32 |
| 33 class ActionBoxButtonView; |
| 33 class ChromeToMobileView; | 34 class ChromeToMobileView; |
| 34 class CommandUpdater; | 35 class CommandUpdater; |
| 35 class ContentSettingBubbleModelDelegate; | 36 class ContentSettingBubbleModelDelegate; |
| 36 class ContentSettingImageView; | 37 class ContentSettingImageView; |
| 37 class EVBubbleView; | 38 class EVBubbleView; |
| 38 class ExtensionAction; | 39 class ExtensionAction; |
| 39 class GURL; | 40 class GURL; |
| 40 class InstantController; | 41 class InstantController; |
| 41 class KeywordHintView; | 42 class KeywordHintView; |
| 42 class LocationIconView; | 43 class LocationIconView; |
| (...skipping 405 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 448 | 449 |
| 449 // The content setting views. | 450 // The content setting views. |
| 450 ContentSettingViews content_setting_views_; | 451 ContentSettingViews content_setting_views_; |
| 451 | 452 |
| 452 // The page action icon views. | 453 // The page action icon views. |
| 453 PageActionViews page_action_views_; | 454 PageActionViews page_action_views_; |
| 454 | 455 |
| 455 // The star. | 456 // The star. |
| 456 StarView* star_view_; | 457 StarView* star_view_; |
| 457 | 458 |
| 459 // The action box button (plus). |
| 460 ActionBoxButtonView* action_box_button_view_; |
| 461 |
| 458 // The Chrome To Mobile page action icon view. | 462 // The Chrome To Mobile page action icon view. |
| 459 ChromeToMobileView* chrome_to_mobile_view_; | 463 ChromeToMobileView* chrome_to_mobile_view_; |
| 460 | 464 |
| 461 // The mode that dictates how the bar shows. | 465 // The mode that dictates how the bar shows. |
| 462 Mode mode_; | 466 Mode mode_; |
| 463 | 467 |
| 464 // True if we should show a focus rect while the location entry field is | 468 // True if we should show a focus rect while the location entry field is |
| 465 // focused. Used when the toolbar is in full keyboard accessibility mode. | 469 // focused. Used when the toolbar is in full keyboard accessibility mode. |
| 466 bool show_focus_rect_; | 470 bool show_focus_rect_; |
| 467 | 471 |
| 468 // This is in case we're destroyed before the model loads. We need to make | 472 // This is in case we're destroyed before the model loads. We need to make |
| 469 // Add/RemoveObserver calls. | 473 // Add/RemoveObserver calls. |
| 470 TemplateURLService* template_url_service_; | 474 TemplateURLService* template_url_service_; |
| 471 | 475 |
| 472 // Tracks this preference to determine whether bookmark editing is allowed. | 476 // Tracks this preference to determine whether bookmark editing is allowed. |
| 473 BooleanPrefMember edit_bookmarks_enabled_; | 477 BooleanPrefMember edit_bookmarks_enabled_; |
| 474 | 478 |
| 475 // While animating, the host clips the widget and draws only the bottom | 479 // While animating, the host clips the widget and draws only the bottom |
| 476 // part of it. The view needs to know the pixel offset at which we are drawing | 480 // part of it. The view needs to know the pixel offset at which we are drawing |
| 477 // the widget so that we can draw the curved edges that attach to the toolbar | 481 // the widget so that we can draw the curved edges that attach to the toolbar |
| 478 // in the right location. | 482 // in the right location. |
| 479 int animation_offset_; | 483 int animation_offset_; |
| 480 | 484 |
| 481 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 485 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 482 }; | 486 }; |
| 483 | 487 |
| 484 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 488 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |