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 "ui/views/widget/desktop_root_window_host_linux.h" | 5 #include "ui/views/widget/desktop_root_window_host_linux.h" |
6 | 6 |
7 #include "ui/aura/root_window.h" | 7 #include "ui/aura/root_window.h" |
8 | 8 |
9 namespace views { | 9 namespace views { |
10 | 10 |
11 //////////////////////////////////////////////////////////////////////////////// | 11 //////////////////////////////////////////////////////////////////////////////// |
12 // DesktopRootWindowHostLinux, public: | 12 // DesktopRootWindowHostLinux, public: |
13 | 13 |
14 DesktopRootWindowHostLinux::DesktopRootWindowHostLinux() { | 14 DesktopRootWindowHostLinux::DesktopRootWindowHostLinux() { |
15 } | 15 } |
16 | 16 |
17 DesktopRootWindowHostLinux::~DesktopRootWindowHostLinux() { | 17 DesktopRootWindowHostLinux::~DesktopRootWindowHostLinux() { |
18 } | 18 } |
19 | 19 |
20 //////////////////////////////////////////////////////////////////////////////// | 20 //////////////////////////////////////////////////////////////////////////////// |
21 // DesktopRootWindowHostLinux, DesktopRootWindowHost implementation: | 21 // DesktopRootWindowHostLinux, DesktopRootWindowHost implementation: |
22 | 22 |
23 void DesktopRootWindowHostLinux::Init(aura::Window* content_window, | 23 void DesktopRootWindowHostLinux::Init(aura::Window* content_window, |
24 const Widget::InitParams& params) { | 24 const Widget::InitParams& params) { |
25 // TODO(erg): | 25 // TODO(erg): |
26 NOTIMPLEMENTED(); | 26 NOTIMPLEMENTED(); |
27 } | 27 } |
28 | 28 |
| 29 void DesktopRootWindowHostLinux::Close() { |
| 30 // TODO(erg): |
| 31 NOTIMPLEMENTED(); |
| 32 } |
| 33 |
| 34 void DesktopRootWindowHostLinux::CloseNow() { |
| 35 // TODO(erg): |
| 36 NOTIMPLEMENTED(); |
| 37 } |
| 38 |
| 39 aura::RootWindowHost* DesktopRootWindowHostLinux::AsRootWindowHost() { |
| 40 // TODO(erg): |
| 41 NOTIMPLEMENTED(); |
| 42 return NULL; |
| 43 } |
| 44 |
29 void DesktopRootWindowHostLinux::ShowWindowWithState( | 45 void DesktopRootWindowHostLinux::ShowWindowWithState( |
30 ui::WindowShowState show_state) { | 46 ui::WindowShowState show_state) { |
31 // TODO(erg): | 47 // TODO(erg): |
32 NOTIMPLEMENTED(); | 48 NOTIMPLEMENTED(); |
33 } | 49 } |
34 | 50 |
| 51 bool DesktopRootWindowHostLinux::IsVisible() const { |
| 52 // TODO(erg): |
| 53 NOTIMPLEMENTED(); |
| 54 return true; |
| 55 } |
| 56 |
| 57 gfx::Rect DesktopRootWindowHostLinux::GetClientAreaBoundsInScreen() const { |
| 58 // TODO(erg): |
| 59 NOTIMPLEMENTED(); |
| 60 return gfx::Rect(100, 100); |
| 61 } |
| 62 |
35 //////////////////////////////////////////////////////////////////////////////// | 63 //////////////////////////////////////////////////////////////////////////////// |
36 // DesktopRootWindowHost, public: | 64 // DesktopRootWindowHost, public: |
37 | 65 |
38 // static | 66 // static |
39 DesktopRootWindowHost* DesktopRootWindowHost::Create( | 67 DesktopRootWindowHost* DesktopRootWindowHost::Create( |
40 internal::NativeWidgetDelegate* native_widget_delegate, | 68 internal::NativeWidgetDelegate* native_widget_delegate, |
41 const gfx::Rect& initial_bounds) { | 69 const gfx::Rect& initial_bounds) { |
42 return new DesktopRootWindowHostLinux; | 70 return new DesktopRootWindowHostLinux; |
43 } | 71 } |
44 | 72 |
45 } // namespace views | 73 } // namespace views |
OLD | NEW |