| 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 #include "chrome/browser/ui/views/location_bar/page_action_image_view.h" | 5 #include "chrome/browser/ui/views/location_bar/page_action_image_view.h" |
| 6 | 6 |
| 7 #include "base/strings/utf_string_conversions.h" | 7 #include "base/strings/utf_string_conversions.h" |
| 8 #include "chrome/browser/extensions/extension_action.h" | 8 #include "chrome/browser/extensions/extension_action.h" |
| 9 #include "chrome/browser/platform_util.h" | 9 #include "chrome/browser/platform_util.h" |
| 10 #include "chrome/browser/profiles/profile.h" | 10 #include "chrome/browser/profiles/profile.h" |
| 11 #include "chrome/browser/sessions/session_tab_helper.h" | 11 #include "chrome/browser/sessions/session_tab_helper.h" |
| 12 #include "chrome/browser/ui/browser.h" | 12 #include "chrome/browser/ui/browser.h" |
| 13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" | 13 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 14 #include "extensions/browser/extension_registry.h" | 14 #include "extensions/browser/extension_registry.h" |
| 15 #include "ui/accessibility/ax_view_state.h" | 15 #include "ui/accessibility/ax_view_state.h" |
| 16 #include "ui/compositor/paint_context.h" | |
| 17 #include "ui/compositor/paint_recorder.h" | 16 #include "ui/compositor/paint_recorder.h" |
| 18 #include "ui/events/event.h" | 17 #include "ui/events/event.h" |
| 19 #include "ui/gfx/canvas.h" | 18 #include "ui/gfx/canvas.h" |
| 20 #include "ui/gfx/image/image.h" | 19 #include "ui/gfx/image/image.h" |
| 21 | 20 |
| 22 // static | 21 // static |
| 23 const char PageActionImageView::kViewClassName[] = "PageActionImageView"; | 22 const char PageActionImageView::kViewClassName[] = "PageActionImageView"; |
| 24 | 23 |
| 25 PageActionImageView::PageActionImageView(LocationBarView* owner, | 24 PageActionImageView::PageActionImageView(LocationBarView* owner, |
| 26 ExtensionAction* page_action, | 25 ExtensionAction* page_action, |
| (...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 148 return this; | 147 return this; |
| 149 } | 148 } |
| 150 | 149 |
| 151 views::MenuButton* PageActionImageView::GetContextMenuButton() { | 150 views::MenuButton* PageActionImageView::GetContextMenuButton() { |
| 152 return NULL; // No menu button for page action views. | 151 return NULL; // No menu button for page action views. |
| 153 } | 152 } |
| 154 | 153 |
| 155 content::WebContents* PageActionImageView::GetCurrentWebContents() const { | 154 content::WebContents* PageActionImageView::GetCurrentWebContents() const { |
| 156 return owner_->GetWebContents(); | 155 return owner_->GetWebContents(); |
| 157 } | 156 } |
| OLD | NEW |