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 155 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
166 virtual void CloseNow(); | 166 virtual void CloseNow(); |
167 virtual void Show(); | 167 virtual void Show(); |
168 virtual void Hide(); | 168 virtual void Hide(); |
169 virtual gfx::NativeView GetNativeView() const; | 169 virtual gfx::NativeView GetNativeView() const; |
170 virtual void SetOpacity(unsigned char opacity); | 170 virtual void SetOpacity(unsigned char opacity); |
171 virtual void SetAlwaysOnTop(bool on_top); | 171 virtual void SetAlwaysOnTop(bool on_top); |
172 virtual Widget* GetRootWidget() const; | 172 virtual Widget* GetRootWidget() const; |
173 virtual bool IsVisible() const; | 173 virtual bool IsVisible() const; |
174 virtual bool IsActive() const; | 174 virtual bool IsActive() const; |
175 virtual bool IsAccessibleWidget() const; | 175 virtual bool IsAccessibleWidget() const; |
176 virtual void GenerateMousePressedForView(View* view, | |
177 const gfx::Point& point); | |
178 virtual TooltipManager* GetTooltipManager(); | 176 virtual TooltipManager* GetTooltipManager(); |
179 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); | 177 virtual bool GetAccelerator(int cmd_id, ui::Accelerator* accelerator); |
180 virtual Window* GetWindow(); | 178 virtual Window* GetWindow(); |
181 virtual const Window* GetWindow() const; | 179 virtual const Window* GetWindow() const; |
182 virtual void SetNativeWindowProperty(const char* name, void* value); | 180 virtual void SetNativeWindowProperty(const char* name, void* value); |
183 virtual void* GetNativeWindowProperty(const char* name); | 181 virtual void* GetNativeWindowProperty(const char* name); |
184 virtual ThemeProvider* GetThemeProvider() const; | 182 virtual ThemeProvider* GetThemeProvider() const; |
185 virtual FocusManager* GetFocusManager(); | 183 virtual FocusManager* GetFocusManager(); |
186 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 184 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
187 View *child); | 185 View *child); |
(...skipping 253 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
441 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the | 439 // Valid for the lifetime of StartDragForViewFromMouseEvent, indicates the |
442 // view the drag started from. | 440 // view the drag started from. |
443 View* dragged_view_; | 441 View* dragged_view_; |
444 | 442 |
445 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 443 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
446 }; | 444 }; |
447 | 445 |
448 } // namespace views | 446 } // namespace views |
449 | 447 |
450 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 448 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
OLD | NEW |