| OLD | NEW |
| 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 Loading... |
| 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 Loading... |
| 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_ |
| OLD | NEW |