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

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: Don't extend DisplayController::Observer - TouchExplorationController is owned by the root window (… Created 6 years, 8 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
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 729 matching lines...) Expand 10 before | Expand all | Expand 10 after
740 } 740 }
741 } 741 }
742 742
743 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const { 743 bool DesktopWindowTreeHostX11::IsAnimatingClosed() const {
744 return false; 744 return false;
745 } 745 }
746 746
747 //////////////////////////////////////////////////////////////////////////////// 747 ////////////////////////////////////////////////////////////////////////////////
748 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation: 748 // DesktopWindowTreeHostX11, aura::WindowTreeHost implementation:
749 749
750 ui::EventSource* DesktopWindowTreeHostX11::GetEventSource() {
751 return this;
752 }
753
750 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() { 754 gfx::AcceleratedWidget DesktopWindowTreeHostX11::GetAcceleratedWidget() {
751 return xwindow_; 755 return xwindow_;
752 } 756 }
753 757
754 void DesktopWindowTreeHostX11::Show() { 758 void DesktopWindowTreeHostX11::Show() {
755 ShowWindowWithState(ui::SHOW_STATE_NORMAL); 759 ShowWindowWithState(ui::SHOW_STATE_NORMAL);
756 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true); 760 native_widget_delegate_->OnNativeWidgetVisibilityChanged(true);
757 } 761 }
758 762
759 void DesktopWindowTreeHostX11::Hide() { 763 void DesktopWindowTreeHostX11::Hide() {
(...skipping 857 matching lines...) Expand 10 before | Expand all | Expand 10 after
1617 if (linux_ui) { 1621 if (linux_ui) {
1618 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme(); 1622 ui::NativeTheme* native_theme = linux_ui->GetNativeTheme();
1619 if (native_theme) 1623 if (native_theme)
1620 return native_theme; 1624 return native_theme;
1621 } 1625 }
1622 1626
1623 return ui::NativeTheme::instance(); 1627 return ui::NativeTheme::instance();
1624 } 1628 }
1625 1629
1626 } // namespace views 1630 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698