| 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 100 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 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* other); | 120 virtual void MoveAbove(Widget* other); |
| 121 virtual void SetShape(const gfx::Path& shape); | 121 virtual void SetShape(gfx::NativeRegion region); |
| 122 virtual void Close(); | 122 virtual void Close(); |
| 123 virtual void CloseNow(); | 123 virtual void CloseNow(); |
| 124 virtual void Show(); | 124 virtual void Show(); |
| 125 virtual void Hide(); | 125 virtual void Hide(); |
| 126 virtual gfx::NativeView GetNativeView() const; | 126 virtual gfx::NativeView GetNativeView() const; |
| 127 virtual void PaintNow(const gfx::Rect& update_rect); | 127 virtual void PaintNow(const gfx::Rect& update_rect); |
| 128 virtual void SetOpacity(unsigned char opacity); | 128 virtual void SetOpacity(unsigned char opacity); |
| 129 virtual void SetAlwaysOnTop(bool on_top); | 129 virtual void SetAlwaysOnTop(bool on_top); |
| 130 virtual RootView* GetRootView(); | 130 virtual RootView* GetRootView(); |
| 131 virtual Widget* GetRootWidget() const; | 131 virtual Widget* GetRootWidget() const; |
| (...skipping 294 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 426 // didn't change. If we didn't cache this and ignore calls when the size | 426 // didn't change. If we didn't cache this and ignore calls when the size |
| 427 // hasn't changed, we can end up getting stuck in a never ending loop. | 427 // hasn't changed, we can end up getting stuck in a never ending loop. |
| 428 gfx::Size size_; | 428 gfx::Size size_; |
| 429 | 429 |
| 430 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 430 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
| 431 }; | 431 }; |
| 432 | 432 |
| 433 } // namespace views | 433 } // namespace views |
| 434 | 434 |
| 435 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 435 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
| OLD | NEW |