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 1096 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1107 &xclient); | 1107 &xclient); |
1108 } | 1108 } |
1109 | 1109 |
1110 bool DesktopWindowTreeHostX11::HasWMSpecProperty(const char* property) const { | 1110 bool DesktopWindowTreeHostX11::HasWMSpecProperty(const char* property) const { |
1111 return window_properties_.find(atom_cache_.GetAtom(property)) != | 1111 return window_properties_.find(atom_cache_.GetAtom(property)) != |
1112 window_properties_.end(); | 1112 window_properties_.end(); |
1113 } | 1113 } |
1114 | 1114 |
1115 void DesktopWindowTreeHostX11::SetUseNativeFrame(bool use_native_frame) { | 1115 void DesktopWindowTreeHostX11::SetUseNativeFrame(bool use_native_frame) { |
1116 use_native_frame_ = use_native_frame; | 1116 use_native_frame_ = use_native_frame; |
1117 x11_window_event_filter_->SetUseHostWindowBorders(use_native_frame); | 1117 ui::SetUseOSWindowFrame(xwindow_, use_native_frame); |
1118 } | 1118 } |
1119 | 1119 |
1120 void DesktopWindowTreeHostX11::OnCaptureReleased() { | 1120 void DesktopWindowTreeHostX11::OnCaptureReleased() { |
1121 x11_capture_.reset(); | 1121 x11_capture_.reset(); |
1122 g_current_capture = NULL; | 1122 g_current_capture = NULL; |
1123 OnHostLostWindowCapture(); | 1123 OnHostLostWindowCapture(); |
1124 native_widget_delegate_->OnMouseCaptureLost(); | 1124 native_widget_delegate_->OnMouseCaptureLost(); |
1125 } | 1125 } |
1126 | 1126 |
1127 void DesktopWindowTreeHostX11::DispatchMouseEvent(ui::MouseEvent* event) { | 1127 void DesktopWindowTreeHostX11::DispatchMouseEvent(ui::MouseEvent* event) { |
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1612 if (linux_ui) { | 1612 if (linux_ui) { |
1613 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); | 1613 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); |
1614 if (native_theme) | 1614 if (native_theme) |
1615 return native_theme; | 1615 return native_theme; |
1616 } | 1616 } |
1617 | 1617 |
1618 return ui::NativeTheme::instance(); | 1618 return ui::NativeTheme::instance(); |
1619 } | 1619 } |
1620 | 1620 |
1621 } // namespace views | 1621 } // namespace views |
OLD | NEW |