Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(166)

Side by Side Diff: ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc

Issue 264713007: Add unittests for X11TopmostWindowFinder (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 7 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 1195 matching lines...) Expand 10 before | Expand all | Expand 10 after
1206 &xclient); 1206 &xclient);
1207 } 1207 }
1208 1208
1209 bool DesktopWindowTreeHostX11::HasWMSpecProperty(const char* property) const { 1209 bool DesktopWindowTreeHostX11::HasWMSpecProperty(const char* property) const {
1210 return window_properties_.find(atom_cache_.GetAtom(property)) != 1210 return window_properties_.find(atom_cache_.GetAtom(property)) !=
1211 window_properties_.end(); 1211 window_properties_.end();
1212 } 1212 }
1213 1213
1214 void DesktopWindowTreeHostX11::SetUseNativeFrame(bool use_native_frame) { 1214 void DesktopWindowTreeHostX11::SetUseNativeFrame(bool use_native_frame) {
1215 use_native_frame_ = use_native_frame; 1215 use_native_frame_ = use_native_frame;
1216 x11_window_event_filter_->SetUseHostWindowBorders(use_native_frame); 1216 ui::SetUseOSWindowFrame(xwindow_, use_native_frame);
1217 } 1217 }
1218 1218
1219 void DesktopWindowTreeHostX11::OnCaptureReleased() { 1219 void DesktopWindowTreeHostX11::OnCaptureReleased() {
1220 x11_capture_.reset(); 1220 x11_capture_.reset();
1221 g_current_capture = NULL; 1221 g_current_capture = NULL;
1222 OnHostLostWindowCapture(); 1222 OnHostLostWindowCapture();
1223 native_widget_delegate_->OnMouseCaptureLost(); 1223 native_widget_delegate_->OnMouseCaptureLost();
1224 } 1224 }
1225 1225
1226 void DesktopWindowTreeHostX11::DispatchMouseEvent(ui::MouseEvent* event) { 1226 void DesktopWindowTreeHostX11::DispatchMouseEvent(ui::MouseEvent* event) {
(...skipping 484 matching lines...) Expand 10 before | Expand all | Expand 10 after
1711 if (linux_ui) { 1711 if (linux_ui) {
1712 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window); 1712 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(window);
1713 if (native_theme) 1713 if (native_theme)
1714 return native_theme; 1714 return native_theme;
1715 } 1715 }
1716 1716
1717 return ui::NativeTheme::instance(); 1717 return ui::NativeTheme::instance();
1718 } 1718 }
1719 1719
1720 } // namespace views 1720 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698