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/ash/panel_view_aura.h" | 5 #include "chrome/browser/ui/views/ash/panel_view_aura.h" |
6 | 6 |
7 #include "ash/wm/panel_frame_view.h" | 7 #include "ash/wm/panel_frame_view.h" |
8 #include "base/utf_string_conversions.h" | 8 #include "base/utf_string_conversions.h" |
9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" | 9 #include "chrome/browser/extensions/api/tabs/tabs_constants.h" |
10 #include "chrome/browser/extensions/extension_function_dispatcher.h" | 10 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
(...skipping 228 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
239 bool PanelExtensionWindowController::CanClose(Reason* reason) const { | 239 bool PanelExtensionWindowController::CanClose(Reason* reason) const { |
240 return true; | 240 return true; |
241 } | 241 } |
242 | 242 |
243 void PanelExtensionWindowController::SetFullscreenMode( | 243 void PanelExtensionWindowController::SetFullscreenMode( |
244 bool is_fullscreen, const GURL& extension_url) const { | 244 bool is_fullscreen, const GURL& extension_url) const { |
245 } | 245 } |
246 | 246 |
247 bool PanelExtensionWindowController::IsVisibleToExtension( | 247 bool PanelExtensionWindowController::IsVisibleToExtension( |
248 const extensions::Extension* extension) const { | 248 const extensions::Extension* extension) const { |
249 ExtensionProcessManager* process_manager = | 249 ExtensionProcessManager* process_manager = |
250 ExtensionSystem::Get(panel_host_->profile())->process_manager(); | 250 extensions::ExtensionSystem::Get( |
| 251 panel_host_->profile())->process_manager(); |
251 const extensions::Extension* panel_extension = process_manager-> | 252 const extensions::Extension* panel_extension = process_manager-> |
252 GetExtensionForRenderViewHost( | 253 GetExtensionForRenderViewHost( |
253 panel_view_->WebContents()->GetRenderViewHost()); | 254 panel_view_->WebContents()->GetRenderViewHost()); |
254 | 255 |
255 // Non-extension panels are visible to all extensions. | 256 // Non-extension panels are visible to all extensions. |
256 if (!panel_extension) | 257 if (!panel_extension) |
257 return !extension->is_platform_app(); | 258 return !extension->is_platform_app(); |
258 | 259 |
259 // Platform apps can only see their own panels. | 260 // Platform apps can only see their own panels. |
260 if (extension->is_platform_app()) | 261 if (extension->is_platform_app()) |
(...skipping 185 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 } | 447 } |
447 | 448 |
448 void PanelViewAura::FlashFrame(bool flash) { | 449 void PanelViewAura::FlashFrame(bool flash) { |
449 // TODO(stevenjb): Implement | 450 // TODO(stevenjb): Implement |
450 NOTIMPLEMENTED(); | 451 NOTIMPLEMENTED(); |
451 } | 452 } |
452 | 453 |
453 bool PanelViewAura::IsAlwaysOnTop() const { | 454 bool PanelViewAura::IsAlwaysOnTop() const { |
454 return true; | 455 return true; |
455 } | 456 } |
OLD | NEW |