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

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

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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_ 5 #ifndef VIEWS_WIDGET_WIDGET_GTK_H_
6 #define VIEWS_WIDGET_WIDGET_GTK_H_ 6 #define VIEWS_WIDGET_WIDGET_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <gtk/gtk.h> 9 #include <gtk/gtk.h>
10 10
(...skipping 248 matching lines...) Expand 10 before | Expand all | Expand 10 after
259 CHROMEGTK_CALLBACK_0(WidgetGtk, void, OnShow); 259 CHROMEGTK_CALLBACK_0(WidgetGtk, void, OnShow);
260 CHROMEGTK_CALLBACK_0(WidgetGtk, void, OnHide); 260 CHROMEGTK_CALLBACK_0(WidgetGtk, void, OnHide);
261 261
262 void set_mouse_down(bool mouse_down) { is_mouse_down_ = mouse_down; } 262 void set_mouse_down(bool mouse_down) { is_mouse_down_ = mouse_down; }
263 263
264 // Do we own the mouse grab? 264 // Do we own the mouse grab?
265 bool has_capture() const { return has_capture_; } 265 bool has_capture() const { return has_capture_; }
266 266
267 // Returns whether capture should be released on mouse release. The default 267 // Returns whether capture should be released on mouse release. The default
268 // is true. 268 // is true.
269 virtual bool ReleaseCaptureOnMouseReleased() { return true; } 269 virtual bool ReleaseCaptureOnMouseReleased();
270 270
271 // Does a mouse grab on this widget. 271 // Does a mouse grab on this widget.
272 virtual void DoGrab(); 272 virtual void DoGrab();
273 273
274 // Releases a grab done by this widget. 274 // Releases a grab done by this widget.
275 virtual void ReleaseGrab(); 275 virtual void ReleaseGrab();
276 276
277 // Invoked when input grab is stolen by other GtkWidget in the same 277 // Invoked when input grab is stolen by other GtkWidget in the same
278 // application. 278 // application.
279 virtual void HandleGrabBroke(); 279 virtual void HandleGrabBroke();
(...skipping 154 matching lines...) Expand 10 before | Expand all | Expand 10 after
434 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the 434 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the
435 // view the drag started from. 435 // view the drag started from.
436 View* dragged_view_; 436 View* dragged_view_;
437 437
438 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); 438 DISALLOW_COPY_AND_ASSIGN(WidgetGtk);
439 }; 439 };
440 440
441 } // namespace views 441 } // namespace views
442 442
443 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ 443 #endif // VIEWS_WIDGET_WIDGET_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698