Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright (c) 2013 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #include "chrome/browser/ui/views/frame/browser_desktop_root_window_host_ozone.h " | |
| 6 | |
| 7 //////////////////////////////////////////////////////////////////////////////// | |
| 8 // BrowserDesktopRootWindowHostOzone, public: | |
| 9 | |
| 10 BrowserDesktopRootWindowHostOzone::BrowserDesktopRootWindowHostOzone( | |
| 11 views::internal::NativeWidgetDelegate* native_widget_delegate, | |
| 12 views::DesktopNativeWidgetAura* desktop_native_widget_aura, | |
| 13 BrowserView* browser_view) | |
| 14 : browser_view_(browser_view), | |
| 15 desktop_root_window_host_(NULL) { | |
| 16 desktop_root_window_host_ = views::DesktopRootWindowHost::Create( | |
| 17 native_widget_delegate, | |
| 18 desktop_native_widget_aura); | |
| 19 } | |
| 20 | |
| 21 BrowserDesktopRootWindowHostOzone::~BrowserDesktopRootWindowHostOzone() { | |
| 22 desktop_root_window_host_ = NULL; | |
| 23 } | |
| 24 | |
| 25 //////////////////////////////////////////////////////////////////////////////// | |
| 26 // BrowserDesktopRootWindowHostOzone, | |
| 27 // BrowserDesktopRootWindowHost implementation: | |
| 28 | |
| 29 views::DesktopRootWindowHost* | |
| 30 BrowserDesktopRootWindowHostOzone::AsDesktopRootWindowHost() { | |
| 31 return desktop_root_window_host_; | |
|
Elliot Glaysher
2013/10/28 19:50:00
You haven't fixed the major problem here. You're r
vignatti (out of this project)
2013/10/29 16:08:38
I see now.
rjkroege@, it all boils down to the fa
| |
| 32 } | |
| 33 | |
| 34 int BrowserDesktopRootWindowHostOzone::GetMinimizeButtonOffset() const { | |
| 35 return 0; | |
| 36 } | |
| 37 | |
| 38 bool BrowserDesktopRootWindowHostOzone::UsesNativeSystemMenu() const { | |
| 39 return false; | |
| 40 } | |
| 41 | |
| 42 //////////////////////////////////////////////////////////////////////////////// | |
| 43 // BrowserDesktopRootWindowHostOzone, | |
| 44 // views::DesktopRootWindowHostOzone implementation: | |
| 45 | |
| 46 void BrowserDesktopRootWindowHostOzone::Init( | |
| 47 aura::Window* content_window, | |
| 48 const views::Widget::InitParams& params, | |
| 49 aura::RootWindow::CreateParams* rw_create_params) { | |
| 50 desktop_root_window_host_->Init(content_window, params, rw_create_params); | |
| 51 } | |
| 52 | |
| 53 void BrowserDesktopRootWindowHostOzone::CloseNow() { | |
| 54 desktop_root_window_host_->CloseNow(); | |
| 55 } | |
| 56 | |
| 57 //////////////////////////////////////////////////////////////////////////////// | |
| 58 // BrowserDesktopRootWindowHost, public: | |
| 59 | |
| 60 // static | |
| 61 BrowserDesktopRootWindowHost* | |
| 62 BrowserDesktopRootWindowHost::CreateBrowserDesktopRootWindowHost( | |
| 63 views::internal::NativeWidgetDelegate* native_widget_delegate, | |
| 64 views::DesktopNativeWidgetAura* desktop_native_widget_aura, | |
| 65 BrowserView* browser_view, | |
| 66 BrowserFrame* browser_frame) { | |
| 67 return new BrowserDesktopRootWindowHostOzone(native_widget_delegate, | |
| 68 desktop_native_widget_aura, | |
| 69 browser_view); | |
| 70 } | |
| OLD | NEW |