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

Side by Side Diff: views/window/window_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_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 #pragma once 7 #pragma once
8 8
9 #include "base/basictypes.h" 9 #include "base/basictypes.h"
10 #include "views/widget/widget_gtk.h" 10 #include "views/widget/widget_gtk.h"
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after
53 virtual void SetIsAlwaysOnTop(bool always_on_top); 53 virtual void SetIsAlwaysOnTop(bool always_on_top);
54 virtual NonClientFrameView* CreateFrameViewForWindow(); 54 virtual NonClientFrameView* CreateFrameViewForWindow();
55 virtual void UpdateFrameAfterFrameChange(); 55 virtual void UpdateFrameAfterFrameChange();
56 virtual WindowDelegate* GetDelegate() const; 56 virtual WindowDelegate* GetDelegate() const;
57 virtual NonClientView* GetNonClientView() const; 57 virtual NonClientView* GetNonClientView() const;
58 virtual ClientView* GetClientView() const; 58 virtual ClientView* GetClientView() const;
59 virtual gfx::NativeWindow GetNativeWindow() const; 59 virtual gfx::NativeWindow GetNativeWindow() const;
60 virtual bool ShouldUseNativeFrame() const; 60 virtual bool ShouldUseNativeFrame() const;
61 virtual void FrameTypeChanged(); 61 virtual void FrameTypeChanged();
62 62
63 virtual Window* AsWindow() { return this; } 63 virtual Window* AsWindow();
64 virtual const Window* AsWindow() const { return this; } 64 virtual const Window* AsWindow() const;
65 65
66 // Overridden from WidgetGtk: 66 // Overridden from WidgetGtk:
67 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event); 67 virtual gboolean OnButtonPress(GtkWidget* widget, GdkEventButton* event);
68 virtual gboolean OnConfigureEvent(GtkWidget* widget, 68 virtual gboolean OnConfigureEvent(GtkWidget* widget,
69 GdkEventConfigure* event); 69 GdkEventConfigure* event);
70 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event); 70 virtual gboolean OnMotionNotify(GtkWidget* widget, GdkEventMotion* event);
71 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation); 71 virtual void OnSizeAllocate(GtkWidget* widget, GtkAllocation* allocation);
72 virtual gboolean OnWindowStateEvent(GtkWidget* widget, 72 virtual gboolean OnWindowStateEvent(GtkWidget* widget,
73 GdkEventWindowState* event); 73 GdkEventWindowState* event);
74 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event); 74 virtual gboolean OnLeaveNotify(GtkWidget* widget, GdkEventCrossing* event);
(...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after
119 119
120 // Set to true if the window is in the process of closing. 120 // Set to true if the window is in the process of closing.
121 bool window_closed_; 121 bool window_closed_;
122 122
123 DISALLOW_COPY_AND_ASSIGN(WindowGtk); 123 DISALLOW_COPY_AND_ASSIGN(WindowGtk);
124 }; 124 };
125 125
126 } // namespace views 126 } // namespace views
127 127
128 #endif // VIEWS_WINDOW_WINDOW_GTK_H_ 128 #endif // VIEWS_WINDOW_WINDOW_GTK_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698