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_aura/desktop_root_window_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_root_window_host_x11.h" |
6 | 6 |
7 #include <X11/extensions/shape.h> | 7 #include <X11/extensions/shape.h> |
8 #include <X11/extensions/XInput2.h> | 8 #include <X11/extensions/XInput2.h> |
9 #include <X11/Xatom.h> | 9 #include <X11/Xatom.h> |
10 #include <X11/Xregion.h> | 10 #include <X11/Xregion.h> |
(...skipping 271 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
282 | 282 |
283 bool DesktopRootWindowHostX11::IsVisible() const { | 283 bool DesktopRootWindowHostX11::IsVisible() const { |
284 return window_mapped_; | 284 return window_mapped_; |
285 } | 285 } |
286 | 286 |
287 void DesktopRootWindowHostX11::SetSize(const gfx::Size& size) { | 287 void DesktopRootWindowHostX11::SetSize(const gfx::Size& size) { |
288 // TODO(erg): | 288 // TODO(erg): |
289 NOTIMPLEMENTED(); | 289 NOTIMPLEMENTED(); |
290 } | 290 } |
291 | 291 |
292 void DesktopRootWindowHostX11::StackAtTop() { | |
293 NOTIMPLEMENTED(); | |
Elliot Glaysher
2013/10/30 18:13:30
:(
Can you implement this?
Tomasz Moniuszko
2013/10/31 08:33:43
Done. Could you please have a look?
| |
294 } | |
295 | |
292 void DesktopRootWindowHostX11::CenterWindow(const gfx::Size& size) { | 296 void DesktopRootWindowHostX11::CenterWindow(const gfx::Size& size) { |
293 gfx::Rect parent_bounds = GetWorkAreaBoundsInScreen(); | 297 gfx::Rect parent_bounds = GetWorkAreaBoundsInScreen(); |
294 | 298 |
295 // If |window_|'s transient parent bounds are big enough to contain |size|, | 299 // If |window_|'s transient parent bounds are big enough to contain |size|, |
296 // use them instead. | 300 // use them instead. |
297 if (content_window_->transient_parent()) { | 301 if (content_window_->transient_parent()) { |
298 gfx::Rect transient_parent_rect = | 302 gfx::Rect transient_parent_rect = |
299 content_window_->transient_parent()->GetBoundsInScreen(); | 303 content_window_->transient_parent()->GetBoundsInScreen(); |
300 if (transient_parent_rect.height() >= size.height() && | 304 if (transient_parent_rect.height() >= size.height() && |
301 transient_parent_rect.width() >= size.width()) { | 305 transient_parent_rect.width() >= size.width()) { |
(...skipping 1126 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... | |
1428 if (linux_ui) { | 1432 if (linux_ui) { |
1429 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); | 1433 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); |
1430 if (native_theme) | 1434 if (native_theme) |
1431 return native_theme; | 1435 return native_theme; |
1432 } | 1436 } |
1433 | 1437 |
1434 return ui::NativeTheme::instance(); | 1438 return ui::NativeTheme::instance(); |
1435 } | 1439 } |
1436 | 1440 |
1437 } // namespace views | 1441 } // namespace views |
OLD | NEW |