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

Side by Side Diff: views/widget/native_widget_gtk.cc

Issue 7845033: Rework View Layer Draw() to use the Layer::DrawTree() method and the LayerDelegate. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 9 years, 3 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
« no previous file with comments | « views/widget/native_widget_gtk.h ('k') | views/widget/native_widget_private.h » ('j') | 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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 "views/widget/native_widget_gtk.h" 5 #include "views/widget/native_widget_gtk.h"
6 6
7 #include <gdk/gdk.h> 7 #include <gdk/gdk.h>
8 #include <gdk/gdkx.h> 8 #include <gdk/gdkx.h>
9 #include <X11/extensions/shape.h> 9 #include <X11/extensions/shape.h>
10 #include <X11/Xatom.h> 10 #include <X11/Xatom.h>
(...skipping 835 matching lines...) Expand 10 before | Expand all | Expand 10 after
846 } 846 }
847 847
848 const ui::Compositor* NativeWidgetGtk::GetCompositor() const { 848 const ui::Compositor* NativeWidgetGtk::GetCompositor() const {
849 return compositor_.get(); 849 return compositor_.get();
850 } 850 }
851 851
852 ui::Compositor* NativeWidgetGtk::GetCompositor() { 852 ui::Compositor* NativeWidgetGtk::GetCompositor() {
853 return compositor_.get(); 853 return compositor_.get();
854 } 854 }
855 855
856 void NativeWidgetGtk::MarkLayerDirty() { 856 void NativeWidgetGtk::CalculateOffsetToAncestorWithLayer(
857 } 857 gfx::Point* offset,
858 858 ui::Layer** layer_parent) {
859 void NativeWidgetGtk::CalculateOffsetToAncestorWithLayer(gfx::Point* offset,
860 View** ancestor) {
861 } 859 }
862 860
863 void NativeWidgetGtk::ViewRemoved(View* view) { 861 void NativeWidgetGtk::ViewRemoved(View* view) {
864 if (drop_target_.get()) 862 if (drop_target_.get())
865 drop_target_->ResetTargetViewIfEquals(view); 863 drop_target_->ResetTargetViewIfEquals(view);
866 } 864 }
867 865
868 void NativeWidgetGtk::SetNativeWindowProperty(const char* name, void* value) { 866 void NativeWidgetGtk::SetNativeWindowProperty(const char* name, void* value) {
869 g_object_set_data(G_OBJECT(widget_), name, value); 867 g_object_set_data(G_OBJECT(widget_), name, value);
870 } 868 }
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 button_pressed = event->type == GDK_BUTTON_PRESS || 2259 button_pressed = event->type == GDK_BUTTON_PRESS ||
2262 event->type == GDK_2BUTTON_PRESS || 2260 event->type == GDK_2BUTTON_PRESS ||
2263 event->type == GDK_3BUTTON_PRESS; 2261 event->type == GDK_3BUTTON_PRESS;
2264 gdk_event_free(event); 2262 gdk_event_free(event);
2265 } 2263 }
2266 return button_pressed; 2264 return button_pressed;
2267 } 2265 }
2268 2266
2269 } // namespace internal 2267 } // namespace internal
2270 } // namespace views 2268 } // namespace views
OLDNEW
« no previous file with comments | « views/widget/native_widget_gtk.h ('k') | views/widget/native_widget_private.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698