| 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 "ash/shell/content_client/shell_browser_main_parts.h" | 5 #include "ash/shell/content_client/shell_browser_main_parts.h" |
| 6 | 6 |
| 7 #include "ash/ash_switches.h" | 7 #include "ash/ash_switches.h" |
| 8 #include "ash/desktop_background/desktop_background_controller.h" | 8 #include "ash/desktop_background/desktop_background_controller.h" |
| 9 #include "ash/shell.h" | 9 #include "ash/shell.h" |
| 10 #include "ash/shell/shell_delegate_impl.h" | 10 #include "ash/shell/shell_delegate_impl.h" |
| (...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 50 class ShellViewsDelegate : public views::TestViewsDelegate { | 50 class ShellViewsDelegate : public views::TestViewsDelegate { |
| 51 public: | 51 public: |
| 52 ShellViewsDelegate() {} | 52 ShellViewsDelegate() {} |
| 53 virtual ~ShellViewsDelegate() {} | 53 virtual ~ShellViewsDelegate() {} |
| 54 | 54 |
| 55 // Overridden from views::TestViewsDelegate: | 55 // Overridden from views::TestViewsDelegate: |
| 56 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView( | 56 virtual views::NonClientFrameView* CreateDefaultNonClientFrameView( |
| 57 views::Widget* widget) OVERRIDE { | 57 views::Widget* widget) OVERRIDE { |
| 58 return ash::Shell::GetInstance()->CreateDefaultNonClientFrameView(widget); | 58 return ash::Shell::GetInstance()->CreateDefaultNonClientFrameView(widget); |
| 59 } | 59 } |
| 60 virtual bool UseTransparentWindows() const OVERRIDE { | 60 virtual bool UseTransparentWindows( |
| 61 views::Widget::InitParams* params) const OVERRIDE { |
| 61 // Ash uses transparent window frames. | 62 // Ash uses transparent window frames. |
| 62 return true; | 63 return true; |
| 63 } | 64 } |
| 64 virtual void OnBeforeWidgetInit( | 65 virtual void OnBeforeWidgetInit( |
| 65 views::Widget::InitParams* params, | 66 views::Widget::InitParams* params, |
| 66 views::internal::NativeWidgetDelegate* delegate) OVERRIDE { | 67 views::internal::NativeWidgetDelegate* delegate) OVERRIDE { |
| 67 if (params->native_widget) | 68 if (params->native_widget) |
| 68 return; | 69 return; |
| 69 | 70 |
| 70 if (!params->parent && !params->context && params->top_level) | 71 if (!params->parent && !params->context && params->top_level) |
| (...skipping 91 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 162 browser_context_.reset(); | 163 browser_context_.reset(); |
| 163 } | 164 } |
| 164 | 165 |
| 165 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { | 166 bool ShellBrowserMainParts::MainMessageLoopRun(int* result_code) { |
| 166 base::MessageLoopForUI::current()->Run(); | 167 base::MessageLoopForUI::current()->Run(); |
| 167 return true; | 168 return true; |
| 168 } | 169 } |
| 169 | 170 |
| 170 } // namespace shell | 171 } // namespace shell |
| 171 } // namespace ash | 172 } // namespace ash |
| OLD | NEW |