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

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

Issue 240333007: wip: Second crack at implementing the touch exploration mode. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Adding a flag to disable the touch exploration mode. 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
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 747 matching lines...) Expand 10 before | Expand all | Expand 10 after
758 } 758 }
759 } 759 }
760 760
761 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { 761 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const {
762 return false; 762 return false;
763 } 763 }
764 764
765 //////////////////////////////////////////////////////////////////////////////// 765 ////////////////////////////////////////////////////////////////////////////////
766 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 766 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
767 767
768 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() {
769 return this;
770 }
771
768 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { 772 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() {
769 return xwindow_; 773 return xwindow_;
770 } 774 }
771 775
772 void DesktopWindowTreeHostX11::Show() { 776 void DesktopWindowTreeHostX11::Show() {
773 ShowWindowWithState(ui::SHOW_STATE_NORMAL); 777 ShowWindowWithState(ui::SHOW_STATE_NORMAL);
774 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true); 778 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true);
775 } 779 }
776 780
777 void DesktopWindowTreeHostX11::Hide() { 781 void DesktopWindowTreeHostX11::Hide() {
(...skipping 856 matching lines...) Expand 10 before | Expand all | Expand 10 after
1634 if (linux_ui) { 1638 if (linux_ui) {
1635 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); 1639 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme();
1636 if (native_theme) 1640 if (native_theme)
1637 return native_theme; 1641 return native_theme;
1638 } 1642 }
1639 1643
1640 return ui::NativeTheme::instance(); 1644 return ui::NativeTheme::instance();
1641 } 1645 }
1642 1646
1643 } // namespace views 1647 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.h ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698