| 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 <map> | 9 #include <map> |
| 10 #include <vector> | 10 #include <vector> |
| 11 | 11 |
| 12 #include "app/gfx/font.h" | 12 #include "app/gfx/font.h" |
| 13 #include "base/gfx/rect.h" | 13 #include "base/gfx/rect.h" |
| 14 #include "base/task.h" | 14 #include "base/task.h" |
| 15 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 15 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| 16 #include "chrome/browser/extensions/image_loading_tracker.h" | 16 #include "chrome/browser/extensions/image_loading_tracker.h" |
| 17 #include "chrome/browser/location_bar.h" | 17 #include "chrome/browser/location_bar.h" |
| 18 #include "chrome/browser/tab_contents/tab_contents.h" | 18 #include "chrome/browser/tab_contents/tab_contents.h" |
| 19 #include "chrome/browser/toolbar_model.h" | 19 #include "chrome/browser/toolbar_model.h" |
| 20 #include "chrome/browser/views/browser_bubble.h" | 20 #include "chrome/browser/views/browser_bubble.h" |
| 21 #include "chrome/browser/views/extensions/extension_action_context_menu.h" | |
| 22 #include "chrome/browser/views/info_bubble.h" | 21 #include "chrome/browser/views/info_bubble.h" |
| 23 #include "chrome/common/notification_observer.h" | 22 #include "chrome/common/notification_observer.h" |
| 24 #include "chrome/common/notification_registrar.h" | 23 #include "chrome/common/notification_registrar.h" |
| 25 #include "views/controls/image_view.h" | 24 #include "views/controls/image_view.h" |
| 26 #include "views/controls/label.h" | 25 #include "views/controls/label.h" |
| 27 #include "views/controls/native/native_view_host.h" | 26 #include "views/controls/native/native_view_host.h" |
| 28 #include "views/painter.h" | 27 #include "views/painter.h" |
| 29 | 28 |
| 30 #if defined(OS_WIN) | 29 #if defined(OS_WIN) |
| 31 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" | 30 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| (...skipping 389 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 Profile* profile_; | 420 Profile* profile_; |
| 422 | 421 |
| 423 // The PageAction that this view represents. The PageAction is not owned by | 422 // The PageAction that this view represents. The PageAction is not owned by |
| 424 // us, it resides in the extension of this particular profile. | 423 // us, it resides in the extension of this particular profile. |
| 425 ExtensionAction* page_action_; | 424 ExtensionAction* page_action_; |
| 426 | 425 |
| 427 // A cache of bitmaps the page actions might need to show, mapped by path. | 426 // A cache of bitmaps the page actions might need to show, mapped by path. |
| 428 typedef std::map<std::string, SkBitmap> PageActionMap; | 427 typedef std::map<std::string, SkBitmap> PageActionMap; |
| 429 PageActionMap page_action_icons_; | 428 PageActionMap page_action_icons_; |
| 430 | 429 |
| 431 // The context menu for this page action. | |
| 432 scoped_ptr<ExtensionActionContextMenu> context_menu_; | |
| 433 | |
| 434 // The object that is waiting for the image loading to complete | 430 // The object that is waiting for the image loading to complete |
| 435 // asynchronously. | 431 // asynchronously. |
| 436 ImageLoadingTracker* tracker_; | 432 ImageLoadingTracker* tracker_; |
| 437 | 433 |
| 438 // The tab id we are currently showing the icon for. | 434 // The tab id we are currently showing the icon for. |
| 439 int current_tab_id_; | 435 int current_tab_id_; |
| 440 | 436 |
| 441 // The URL we are currently showing the icon for. | 437 // The URL we are currently showing the icon for. |
| 442 GURL current_url_; | 438 GURL current_url_; |
| 443 | 439 |
| (...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 594 // The positioner that places the omnibox and info bubbles. | 590 // The positioner that places the omnibox and info bubbles. |
| 595 const BubblePositioner* bubble_positioner_; | 591 const BubblePositioner* bubble_positioner_; |
| 596 | 592 |
| 597 // Storage of string needed for accessibility. | 593 // Storage of string needed for accessibility. |
| 598 std::wstring accessible_name_; | 594 std::wstring accessible_name_; |
| 599 | 595 |
| 600 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 596 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 601 }; | 597 }; |
| 602 | 598 |
| 603 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ | 599 #endif // CHROME_BROWSER_VIEWS_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |