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

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

Issue 6622002: Do all OOLing in the views code. linux_views now builds clean with the clang plugin. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 9 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/widget_gtk.h" 5 #include "views/widget/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 10
(...skipping 1242 matching lines...) Expand 10 before | Expand all | Expand 10 after
1253 MessageLoop::current()->DeleteSoon(FROM_HERE, this); 1253 MessageLoop::current()->DeleteSoon(FROM_HERE, this);
1254 } 1254 }
1255 } 1255 }
1256 1256
1257 void WidgetGtk::OnShow(GtkWidget* widget) { 1257 void WidgetGtk::OnShow(GtkWidget* widget) {
1258 } 1258 }
1259 1259
1260 void WidgetGtk::OnHide(GtkWidget* widget) { 1260 void WidgetGtk::OnHide(GtkWidget* widget) {
1261 } 1261 }
1262 1262
1263 bool WidgetGtk::ReleaseCaptureOnMouseReleased() {
1264 return true;
1265 }
1266
1263 void WidgetGtk::DoGrab() { 1267 void WidgetGtk::DoGrab() {
1264 has_capture_ = true; 1268 has_capture_ = true;
1265 gtk_grab_add(window_contents_); 1269 gtk_grab_add(window_contents_);
1266 } 1270 }
1267 1271
1268 void WidgetGtk::ReleaseGrab() { 1272 void WidgetGtk::ReleaseGrab() {
1269 if (has_capture_) { 1273 if (has_capture_) {
1270 has_capture_ = false; 1274 has_capture_ = false;
1271 gtk_grab_remove(window_contents_); 1275 gtk_grab_remove(window_contents_);
1272 } 1276 }
(...skipping 341 matching lines...) Expand 10 before | Expand all | Expand 10 after
1614 1618
1615 NativeWidget* native_widget = GetNativeWidgetForNativeView(native_view); 1619 NativeWidget* native_widget = GetNativeWidgetForNativeView(native_view);
1616 if (native_widget) 1620 if (native_widget)
1617 children->insert(native_widget); 1621 children->insert(native_widget);
1618 gtk_container_foreach(GTK_CONTAINER(native_view), 1622 gtk_container_foreach(GTK_CONTAINER(native_view),
1619 EnumerateChildWidgetsForNativeWidgets, 1623 EnumerateChildWidgetsForNativeWidgets,
1620 reinterpret_cast<gpointer>(children)); 1624 reinterpret_cast<gpointer>(children));
1621 } 1625 }
1622 1626
1623 } // namespace views 1627 } // namespace views
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698