| 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_window_tree_host_x11.h" | 5 #include "ui/views/widget/desktop_aura/desktop_window_tree_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 563 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 574 return g_current_capture == this; | 574 return g_current_capture == this; |
| 575 } | 575 } |
| 576 | 576 |
| 577 void DesktopWindowTreeHostX11::SetAlwaysOnTop(bool always_on_top) { | 577 void DesktopWindowTreeHostX11::SetAlwaysOnTop(bool always_on_top) { |
| 578 is_always_on_top_ = always_on_top; | 578 is_always_on_top_ = always_on_top; |
| 579 SetWMSpecState(always_on_top, | 579 SetWMSpecState(always_on_top, |
| 580 atom_cache_.GetAtom("_NET_WM_STATE_ABOVE"), | 580 atom_cache_.GetAtom("_NET_WM_STATE_ABOVE"), |
| 581 None); | 581 None); |
| 582 } | 582 } |
| 583 | 583 |
| 584 void DesktopWindowTreeHostX11::SetInterceptAllKeys(bool want_all_keys) { |
| 585 // TODO(sriramsr): Need to implement for Linux. |
| 586 } |
| 587 |
| 584 bool DesktopWindowTreeHostX11::IsAlwaysOnTop() const { | 588 bool DesktopWindowTreeHostX11::IsAlwaysOnTop() const { |
| 585 return is_always_on_top_; | 589 return is_always_on_top_; |
| 586 } | 590 } |
| 587 | 591 |
| 588 void DesktopWindowTreeHostX11::SetVisibleOnAllWorkspaces(bool always_visible) { | 592 void DesktopWindowTreeHostX11::SetVisibleOnAllWorkspaces(bool always_visible) { |
| 589 SetWMSpecState(always_visible, | 593 SetWMSpecState(always_visible, |
| 590 atom_cache_.GetAtom("_NET_WM_STATE_STICKY"), | 594 atom_cache_.GetAtom("_NET_WM_STATE_STICKY"), |
| 591 None); | 595 None); |
| 592 | 596 |
| 593 int new_desktop = 0; | 597 int new_desktop = 0; |
| (...skipping 1300 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 1894 if (linux_ui) { | 1898 if (linux_ui) { |
| 1895 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1899 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
| 1896 if (native_theme) | 1900 if (native_theme) |
| 1897 return native_theme; | 1901 return native_theme; |
| 1898 } | 1902 } |
| 1899 | 1903 |
| 1900 return ui::NativeTheme::instance(); | 1904 return ui::NativeTheme::instance(); |
| 1901 } | 1905 } |
| 1902 | 1906 |
| 1903 } // namespace views | 1907 } // namespace views |
| OLD | NEW |