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 : DesktopRootWindowHostOzone(native_widget_delegate, | |
| 15 desktop_native_widget_aura) { | |
| 16 } | |
| 17 | |
| 18 BrowserDesktopRootWindowHostOzone::~BrowserDesktopRootWindowHostOzone() { | |
| 19 } | |
| 20 | |
| 21 //////////////////////////////////////////////////////////////////////////////// | |
| 22 // BrowserDesktopRootWindowHostOzone, | |
| 23 // BrowserDesktopRootWindowHost implementation: | |
| 24 | |
| 25 views::DesktopRootWindowHost* | |
| 26 BrowserDesktopRootWindowHostOzone::AsDesktopRootWindowHost() { | |
| 27 return this; | |
| 28 } | |
| 29 | |
| 30 int BrowserDesktopRootWindowHostOzone::GetMinimizeButtonOffset() const { | |
| 31 return 0; | |
| 32 } | |
| 33 | |
| 34 bool BrowserDesktopRootWindowHostOzone::UsesNativeSystemMenu() const { | |
| 35 return false; | |
| 36 } | |
| 37 | |
| 38 //////////////////////////////////////////////////////////////////////////////// | |
| 39 // BrowserDesktopRootWindowHost, public: | |
| 40 | |
| 41 // static | |
| 42 BrowserDesktopRootWindowHost* | |
| 43 BrowserDesktopRootWindowHost::CreateBrowserDesktopRootWindowHost( | |
| 44 views::internal::NativeWidgetDelegate* native_widget_delegate, | |
| 45 views::DesktopNativeWidgetAura* desktop_native_widget_aura, | |
| 46 BrowserView* browser_view, | |
| 47 BrowserFrame* browser_frame) { | |
| 48 return new BrowserDesktopRootWindowHostOzone(native_widget_delegate, | |
|
kalyank
2013/11/23 12:11:52
Why not use the existing DesktopFactory interface
| |
| 49 desktop_native_widget_aura, | |
| 50 browser_view); | |
| 51 } | |
| OLD | NEW |