| 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_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 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
| 10 | 10 |
| (...skipping 135 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 146 // size of other kinds of widgets. | 146 // size of other kinds of widgets. |
| 147 void GetRequestedSize(gfx::Size* out) const; | 147 void GetRequestedSize(gfx::Size* out) const; |
| 148 | 148 |
| 149 // Overridden from ui::ActiveWindowWatcherX::Observer. | 149 // Overridden from ui::ActiveWindowWatcherX::Observer. |
| 150 virtual void ActiveWindowChanged(GdkWindow* active_window); | 150 virtual void ActiveWindowChanged(GdkWindow* active_window); |
| 151 | 151 |
| 152 // Overridden from Widget: | 152 // Overridden from Widget: |
| 153 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds); | 153 virtual void Init(gfx::NativeView parent, const gfx::Rect& bounds); |
| 154 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds); | 154 virtual void InitWithWidget(Widget* parent, const gfx::Rect& bounds); |
| 155 virtual gfx::NativeView GetNativeView() const; | 155 virtual gfx::NativeView GetNativeView() const; |
| 156 virtual void GenerateMousePressedForView(View* view, | |
| 157 const gfx::Point& point); | |
| 158 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 156 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
| 159 virtual Window* GetWindow(); | 157 virtual Window* GetWindow(); |
| 160 virtual const Window* GetWindow() const; | 158 virtual const Window* GetWindow() const; |
| 161 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 159 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
| 162 View *child); | 160 View *child); |
| 163 | 161 |
| 164 // Clears the focus on the native widget having the focus. | 162 // Clears the focus on the native widget having the focus. |
| 165 virtual void ClearNativeFocus(); | 163 virtual void ClearNativeFocus(); |
| 166 | 164 |
| 167 // Handles a keyboard event by sending it to our focus manager. | 165 // Handles a keyboard event by sending it to our focus manager. |
| (...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 421 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the | 419 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the |
| 422 // view the drag started from. | 420 // view the drag started from. |
| 423 View* dragged_view_; | 421 View* dragged_view_; |
| 424 | 422 |
| 425 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 423 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
| 426 }; | 424 }; |
| 427 | 425 |
| 428 } // namespace views | 426 } // namespace views |
| 429 | 427 |
| 430 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 428 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
| OLD | NEW |