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

Side by Side Diff: ui/views/widget/desktop_root_window_host_linux.cc

Issue 11273059: ash: Clean up system background layer. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: apply review feedback Created 8 years, 1 month 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_root_window_host_linux.h" 5 #include "ui/views/widget/desktop_root_window_host_linux.h"
6 6
7 #include <X11/extensions/XInput2.h> 7 #include <X11/extensions/XInput2.h>
8 #include <X11/Xatom.h> 8 #include <X11/Xatom.h>
9 #include <X11/Xutil.h> 9 #include <X11/Xutil.h>
10 10
(...skipping 746 matching lines...) Expand 10 before | Expand all | Expand 10 after
757 static const char* k_NET_WM_USER_TIME = "_NET_WM_USER_TIME"; 757 static const char* k_NET_WM_USER_TIME = "_NET_WM_USER_TIME";
758 focus_when_shown_ = focus_when_shown; 758 focus_when_shown_ = focus_when_shown;
759 if (IsWindowManagerPresent() && !focus_when_shown_) { 759 if (IsWindowManagerPresent() && !focus_when_shown_) {
760 ui::SetIntProperty(xwindow_, 760 ui::SetIntProperty(xwindow_,
761 k_NET_WM_USER_TIME, 761 k_NET_WM_USER_TIME,
762 k_NET_WM_USER_TIME, 762 k_NET_WM_USER_TIME,
763 0); 763 0);
764 } 764 }
765 } 765 }
766 766
767 bool DesktopRootWindowHostLinux::CopyAreaToSkCanvas(
768 const gfx::Rect& source_bounds,
769 const gfx::Point& dest_offset,
770 SkCanvas* canvas) {
771 NOTIMPLEMENTED();
772 return false;
773 }
774
767 bool DesktopRootWindowHostLinux::GrabSnapshot( 775 bool DesktopRootWindowHostLinux::GrabSnapshot(
768 const gfx::Rect& snapshot_bounds, 776 const gfx::Rect& snapshot_bounds,
769 std::vector<unsigned char>* png_representation) { 777 std::vector<unsigned char>* png_representation) {
770 NOTIMPLEMENTED(); 778 NOTIMPLEMENTED();
771 return false; 779 return false;
772 } 780 }
773 781
774 void DesktopRootWindowHostLinux::PostNativeEvent( 782 void DesktopRootWindowHostLinux::PostNativeEvent(
775 const base::NativeEvent& native_event) { 783 const base::NativeEvent& native_event) {
776 DCHECK(xwindow_); 784 DCHECK(xwindow_);
(...skipping 313 matching lines...) Expand 10 before | Expand all | Expand 10 after
1090 DesktopRootWindowHost* DesktopRootWindowHost::Create( 1098 DesktopRootWindowHost* DesktopRootWindowHost::Create(
1091 internal::NativeWidgetDelegate* native_widget_delegate, 1099 internal::NativeWidgetDelegate* native_widget_delegate,
1092 DesktopNativeWidgetAura* desktop_native_widget_aura, 1100 DesktopNativeWidgetAura* desktop_native_widget_aura,
1093 const gfx::Rect& initial_bounds) { 1101 const gfx::Rect& initial_bounds) {
1094 return new DesktopRootWindowHostLinux(native_widget_delegate, 1102 return new DesktopRootWindowHostLinux(native_widget_delegate,
1095 desktop_native_widget_aura, 1103 desktop_native_widget_aura,
1096 initial_bounds); 1104 initial_bounds);
1097 } 1105 }
1098 1106
1099 } // namespace views 1107 } // namespace views
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_root_window_host_linux.h ('k') | ui/views/widget/desktop_root_window_host_win.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698