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

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
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 838 matching lines...) Expand 10 before | Expand all | Expand 10 after
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::MarkLayerDirty() {
857 } 857 }
858 858
859 void NativeWidgetGtk::CalculateOffsetToAncestorWithLayer(gfx::Point* offset, 859 void NativeWidgetGtk::CalculateOffsetToAncestorWithLayer(
860 View** ancestor) { 860 gfx::Point* offset,
861 ui::Layer** layer_parent) {
861 } 862 }
862 863
863 void NativeWidgetGtk::ViewRemoved(View* view) { 864 void NativeWidgetGtk::ViewRemoved(View* view) {
864 if (drop_target_.get()) 865 if (drop_target_.get())
865 drop_target_->ResetTargetViewIfEquals(view); 866 drop_target_->ResetTargetViewIfEquals(view);
866 } 867 }
867 868
868 void NativeWidgetGtk::SetNativeWindowProperty(const char* name, void* value) { 869 void NativeWidgetGtk::SetNativeWindowProperty(const char* name, void* value) {
869 g_object_set_data(G_OBJECT(widget_), name, value); 870 g_object_set_data(G_OBJECT(widget_), name, value);
870 } 871 }
(...skipping 1390 matching lines...) Expand 10 before | Expand all | Expand 10 after
2261 button_pressed = event->type == GDK_BUTTON_PRESS || 2262 button_pressed = event->type == GDK_BUTTON_PRESS ||
2262 event->type == GDK_2BUTTON_PRESS || 2263 event->type == GDK_2BUTTON_PRESS ||
2263 event->type == GDK_3BUTTON_PRESS; 2264 event->type == GDK_3BUTTON_PRESS;
2264 gdk_event_free(event); 2265 gdk_event_free(event);
2265 } 2266 }
2266 return button_pressed; 2267 return button_pressed;
2267 } 2268 }
2268 2269
2269 } // namespace internal 2270 } // namespace internal
2270 } // namespace views 2271 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698