Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(485)

Side by Side Diff: chrome/browser/ui/views/script_bubble_view.cc

Issue 13142003: Fix app list position in windows (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: nits Created 7 years, 8 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch
OLDNEW
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/script_bubble_view.h" 5 #include "chrome/browser/ui/views/script_bubble_view.h"
6 6
7 #include "base/utf_string_conversions.h" 7 #include "base/utf_string_conversions.h"
8 #include "chrome/browser/extensions/extension_service.h" 8 #include "chrome/browser/extensions/extension_service.h"
9 #include "chrome/browser/extensions/extension_system.h" 9 #include "chrome/browser/extensions/extension_system.h"
10 #include "chrome/browser/extensions/image_loader.h" 10 #include "chrome/browser/extensions/image_loader.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 50
51 ScriptBubbleView::ScriptEntry::ScriptEntry() 51 ScriptBubbleView::ScriptEntry::ScriptEntry()
52 : extension_imageview(NULL) {} 52 : extension_imageview(NULL) {}
53 53
54 ScriptBubbleView::ScriptBubbleView(views::View* anchor_view, 54 ScriptBubbleView::ScriptBubbleView(views::View* anchor_view,
55 WebContents* web_contents) 55 WebContents* web_contents)
56 : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT), 56 : BubbleDelegateView(anchor_view, views::BubbleBorder::TOP_LEFT),
57 height_(0), 57 height_(0),
58 web_contents_(web_contents) { 58 web_contents_(web_contents) {
59 // Compensate for built-in vertical padding in the anchor view's image. 59 // Compensate for built-in vertical padding in the anchor view's image.
60 set_anchor_insets(gfx::Insets(5, 0, 5, 0)); 60 set_anchor_view_insets(gfx::Insets(5, 0, 5, 0));
61 61
62 extensions::ScriptBubbleController* script_bubble_controller = 62 extensions::ScriptBubbleController* script_bubble_controller =
63 GetScriptBubbleController(); 63 GetScriptBubbleController();
64 const std::set<std::string>& extensions_running_scripts = 64 const std::set<std::string>& extensions_running_scripts =
65 script_bubble_controller->extensions_running_scripts(); 65 script_bubble_controller->extensions_running_scripts();
66 Profile* profile = Profile::FromBrowserContext( 66 Profile* profile = Profile::FromBrowserContext(
67 web_contents_->GetBrowserContext()); 67 web_contents_->GetBrowserContext());
68 ExtensionService* extension_service = 68 ExtensionService* extension_service =
69 ExtensionSystem::Get(profile)->extension_service(); 69 ExtensionSystem::Get(profile)->extension_service();
70 70
(...skipping 121 matching lines...) Expand 10 before | Expand all | Expand 10 after
192 const gfx::ImageSkia* image_skia = image.ToImageSkia(); 192 const gfx::ImageSkia* image_skia = image.ToImageSkia();
193 entries_[index].extension_imageview->SetImage(image_skia); 193 entries_[index].extension_imageview->SetImage(image_skia);
194 } 194 }
195 } 195 }
196 196
197 ScriptBubbleController* ScriptBubbleView::GetScriptBubbleController() { 197 ScriptBubbleController* ScriptBubbleView::GetScriptBubbleController() {
198 extensions::TabHelper* extensions_tab_helper = 198 extensions::TabHelper* extensions_tab_helper =
199 extensions::TabHelper::FromWebContents(web_contents_); 199 extensions::TabHelper::FromWebContents(web_contents_);
200 return extensions_tab_helper->script_bubble_controller(); 200 return extensions_tab_helper->script_bubble_controller();
201 } 201 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/outdated_upgrade_bubble_view.cc ('k') | chrome/browser/ui/views/sync/one_click_signin_bubble_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698