| 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/extension_function_dispatcher.h" | 9 #include "chrome/browser/extensions/extension_function_dispatcher.h" |
| 10 #include "chrome/browser/extensions/extension_tab_util.h" | 10 #include "chrome/browser/extensions/extension_tab_util.h" |
| 11 #include "chrome/browser/extensions/extension_tabs_module_constants.h" | 11 #include "chrome/browser/extensions/extension_tabs_module_constants.h" |
| 12 #include "chrome/browser/extensions/extension_window_controller.h" | 12 #include "chrome/browser/extensions/extension_window_controller.h" |
| 13 #include "chrome/browser/extensions/extension_window_list.h" | 13 #include "chrome/browser/extensions/extension_window_list.h" |
| 14 #include "chrome/browser/profiles/profile.h" | 14 #include "chrome/browser/profiles/profile.h" |
| 15 #include "chrome/browser/ui/browser.h" | 15 #include "chrome/browser/ui/browser.h" |
| 16 #include "chrome/browser/ui/browser_list.h" | 16 #include "chrome/browser/ui/browser_list.h" |
| 17 #include "chrome/common/chrome_view_type.h" | 17 #include "chrome/common/chrome_view_type.h" |
| 18 #include "chrome/common/extensions/extension_messages.h" | 18 #include "chrome/common/extensions/extension_messages.h" |
| 19 #include "content/public/browser/site_instance.h" | 19 #include "content/public/browser/site_instance.h" |
| 20 #include "content/public/browser/web_contents.h" | 20 #include "content/public/browser/web_contents.h" |
| 21 #include "content/public/browser/web_contents_delegate.h" | 21 #include "content/public/browser/web_contents_delegate.h" |
| 22 #include "content/public/browser/web_contents_observer.h" | 22 #include "content/public/browser/web_contents_observer.h" |
| 23 #include "googleurl/src/gurl.h" | 23 #include "googleurl/src/gurl.h" |
| 24 #include "ipc/ipc_message.h" | 24 #include "ipc/ipc_message.h" |
| 25 #include "ipc/ipc_message_macros.h" | 25 #include "ipc/ipc_message_macros.h" |
| 26 #include "ui/aura/window.h" | 26 #include "ui/aura/window.h" |
| 27 #include "ui/views/widget/widget.h" | 27 #include "ui/views/widget/widget.h" |
| 28 | 28 |
| 29 using content::RenderViewHost; |
| 30 |
| 29 namespace { | 31 namespace { |
| 30 const int kMinWidth = 100; | 32 const int kMinWidth = 100; |
| 31 const int kMinHeight = 100; | 33 const int kMinHeight = 100; |
| 32 const int kDefaultWidth = 200; | 34 const int kDefaultWidth = 200; |
| 33 const int kDefaultHeight = 300; | 35 const int kDefaultHeight = 300; |
| 34 } | 36 } |
| 35 | 37 |
| 36 namespace internal { | 38 namespace internal { |
| 37 | 39 |
| 38 //////////////////////////////////////////////////////////////////////////////// | 40 //////////////////////////////////////////////////////////////////////////////// |
| (...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 402 } | 404 } |
| 403 | 405 |
| 404 void PanelViewAura::SetBounds(const gfx::Rect& bounds) { | 406 void PanelViewAura::SetBounds(const gfx::Rect& bounds) { |
| 405 GetWidget()->SetBounds(bounds); | 407 GetWidget()->SetBounds(bounds); |
| 406 } | 408 } |
| 407 | 409 |
| 408 void PanelViewAura::FlashFrame(bool flash) { | 410 void PanelViewAura::FlashFrame(bool flash) { |
| 409 // TODO(stevenjb): Implement | 411 // TODO(stevenjb): Implement |
| 410 NOTIMPLEMENTED(); | 412 NOTIMPLEMENTED(); |
| 411 } | 413 } |
| OLD | NEW |