| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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 | 7 |
| 8 #include <gtk/gtk.h> | 8 #include <gtk/gtk.h> |
| 9 | 9 |
| 10 #include "app/active_window_watcher_x.h" | 10 #include "app/active_window_watcher_x.h" |
| (...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 110 virtual void IsActiveChanged(); | 110 virtual void IsActiveChanged(); |
| 111 | 111 |
| 112 // Overriden from ActiveWindowWatcherX::Observer. | 112 // Overriden from ActiveWindowWatcherX::Observer. |
| 113 virtual void ActiveWindowChanged(GdkWindow* active_window); | 113 virtual void ActiveWindowChanged(GdkWindow* active_window); |
| 114 | 114 |
| 115 // Overridden from Widget: | 115 // Overridden from Widget: |
| 116 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds); | 116 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds); |
| 117 virtual void SetContentsView(View* view); | 117 virtual void SetContentsView(View* view); |
| 118 virtual void GetBounds(gfx::Rect* out, bool including_frame) const; | 118 virtual void GetBounds(gfx::Rect* out, bool including_frame) const; |
| 119 virtual void SetBounds(const gfx::Rect& bounds); | 119 virtual void SetBounds(const gfx::Rect& bounds); |
| 120 virtual void MoveAbove(Widget* widget); |
| 120 virtual void SetShape(const gfx::Path& shape); | 121 virtual void SetShape(const gfx::Path& shape); |
| 121 virtual void Close(); | 122 virtual void Close(); |
| 122 virtual void CloseNow(); | 123 virtual void CloseNow(); |
| 123 virtual void Show(); | 124 virtual void Show(); |
| 124 virtual void Hide(); | 125 virtual void Hide(); |
| 125 virtual gfx::NativeView GetNativeView() const; | 126 virtual gfx::NativeView GetNativeView() const; |
| 126 virtual void PaintNow(const gfx::Rect& update_rect); | 127 virtual void PaintNow(const gfx::Rect& update_rect); |
| 127 virtual void SetOpacity(unsigned char opacity); | 128 virtual void SetOpacity(unsigned char opacity); |
| 129 virtual void SetAlwaysOnTop(bool on_top); |
| 128 virtual RootView* GetRootView(); | 130 virtual RootView* GetRootView(); |
| 129 virtual Widget* GetRootWidget() const; | 131 virtual Widget* GetRootWidget() const; |
| 130 virtual bool IsVisible() const; | 132 virtual bool IsVisible() const; |
| 131 virtual bool IsActive() const; | 133 virtual bool IsActive() const; |
| 132 virtual void GenerateMousePressedForView(View* view, | 134 virtual void GenerateMousePressedForView(View* view, |
| 133 const gfx::Point& point); | 135 const gfx::Point& point); |
| 134 virtual TooltipManager* GetTooltipManager(); | 136 virtual TooltipManager* GetTooltipManager(); |
| 135 virtual bool GetAccelerator(int cmd_id, Accelerator* accelerator); | 137 virtual bool GetAccelerator(int cmd_id, Accelerator* accelerator); |
| 136 virtual Window* GetWindow(); | 138 virtual Window* GetWindow(); |
| 137 virtual const Window* GetWindow() const; | 139 virtual const Window* GetWindow() const; |
| (...skipping 284 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 422 // didn't change. If we didn't cache this and ignore calls when the size | 424 // didn't change. If we didn't cache this and ignore calls when the size |
| 423 // hasn't changed, we can end up getting stuck in a never ending loop. | 425 // hasn't changed, we can end up getting stuck in a never ending loop. |
| 424 gfx::Size size_; | 426 gfx::Size size_; |
| 425 | 427 |
| 426 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 428 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
| 427 }; | 429 }; |
| 428 | 430 |
| 429 } // namespace views | 431 } // namespace views |
| 430 | 432 |
| 431 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 433 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
| OLD | NEW |