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

Side by Side Diff: views/window/window_gtk.h

Issue 2620003: Cleanup of about box (Closed) Base URL: http://src.chromium.org/git/chromium.git
Patch Set: Split conditional Created 10 years, 6 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
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.cc ('k') | views/window/window_gtk.cc » ('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) 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_WINDOW_WINDOW_GTK_H_ 5 #ifndef VIEWS_WINDOW_WINDOW_GTK_H_
6 #define VIEWS_WINDOW_WINDOW_GTK_H_ 6 #define VIEWS_WINDOW_WINDOW_GTK_H_
7 7
8 #include "base/basictypes.h" 8 #include "base/basictypes.h"
9 #include "views/widget/widget_gtk.h" 9 #include "views/widget/widget_gtk.h"
10 #include "views/window/window.h" 10 #include "views/window/window.h"
(...skipping 50 matching lines...) Expand 10 before | Expand all | Expand 10 after
61 61
62 // Overridden from WidgetGtk: 62 // Overridden from WidgetGtk:
63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); 63 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event);
64 virtual gboolean OnConfigureEvent(GtkWidget* widget, 64 virtual gboolean OnConfigureEvent(GtkWidget* widget,
65 GdkEventConfigure* event); 65 GdkEventConfigure* event);
66 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event); 66 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event);
67 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); 67 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation);
68 virtual gboolean OnWindowStateEvent(GtkWidget* widget, 68 virtual gboolean OnWindowStateEvent(GtkWidget* widget,
69 GdkEventWindowState* event); 69 GdkEventWindowState* event);
70 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); 70 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event);
71 virtual void SetInitialFocus();
71 72
72 // Gets the WindowGtk in the userdata section of the widget. 73 // Gets the WindowGtk in the userdata section of the widget.
73 static WindowGtk* GetWindowForNative(GtkWidget* widget); 74 static WindowGtk* GetWindowForNative(GtkWidget* widget);
74 75
75 // Sets the WindowGtk in the userdata section of the widget. 76 // Sets the WindowGtk in the userdata section of the widget.
76 static void SetWindowForNative(GtkWidget* widget, WindowGtk* window); 77 static void SetWindowForNative(GtkWidget* widget, WindowGtk* window);
77 78
78 protected: 79 protected:
79 // For the constructor. 80 // For the constructor.
80 friend class Window; 81 friend class Window;
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
120 121
121 // Set to true if the window is in the process of closing. 122 // Set to true if the window is in the process of closing.
122 bool window_closed_; 123 bool window_closed_;
123 124
124 DISALLOW_COPY_AND_ASSIGN(WindowGtk); 125 DISALLOW_COPY_AND_ASSIGN(WindowGtk);
125 }; 126 };
126 127
127 } // namespace views 128 } // namespace views
128 129
129 #endif // VIEWS_WINDOW_WINDOW_GTK_H_ 130 #endif // VIEWS_WINDOW_WINDOW_GTK_H_
OLDNEW
« no previous file with comments | « views/controls/textfield/native_textfield_gtk.cc ('k') | views/window/window_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698