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 168 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
179 virtual Widget* GetRootWidget() const; | 179 virtual Widget* GetRootWidget() const; |
180 virtual bool IsVisible() const; | 180 virtual bool IsVisible() const; |
181 virtual bool IsActive() const; | 181 virtual bool IsActive() const; |
182 virtual bool IsAccessibleWidget() const; | 182 virtual bool IsAccessibleWidget() const; |
183 virtual void GenerateMousePressedForView(View* view, | 183 virtual void GenerateMousePressedForView(View* view, |
184 const gfx::Point& point); | 184 const gfx::Point& point); |
185 virtual TooltipManager* GetTooltipManager(); | 185 virtual TooltipManager* GetTooltipManager(); |
186 virtual bool GetAccelerator(int cmd_id, menus::Accelerator* accelerator); | 186 virtual bool GetAccelerator(int cmd_id, menus::Accelerator* accelerator); |
187 virtual Window* GetWindow(); | 187 virtual Window* GetWindow(); |
188 virtual const Window* GetWindow() const; | 188 virtual const Window* GetWindow() const; |
189 virtual void SetNativeWindowProperty(const char* name, void* value); | 189 virtual void SetNativeWindowProperty(const std::wstring& name, |
190 virtual void* GetNativeWindowProperty(const char* name); | 190 void* value); |
| 191 virtual void* GetNativeWindowProperty(const std::wstring& name); |
191 virtual ThemeProvider* GetThemeProvider() const; | 192 virtual ThemeProvider* GetThemeProvider() const; |
192 virtual ThemeProvider* GetDefaultThemeProvider() const; | 193 virtual ThemeProvider* GetDefaultThemeProvider() const; |
193 virtual FocusManager* GetFocusManager(); | 194 virtual FocusManager* GetFocusManager(); |
194 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 195 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
195 View *child); | 196 View *child); |
196 virtual bool ContainsNativeView(gfx::NativeView native_view); | 197 virtual bool ContainsNativeView(gfx::NativeView native_view); |
197 | 198 |
198 // Overridden from FocusTraversable: | 199 // Overridden from FocusTraversable: |
199 virtual FocusSearch* GetFocusSearch(); | 200 virtual FocusSearch* GetFocusSearch(); |
200 virtual FocusTraversable* GetFocusTraversableParent(); | 201 virtual FocusTraversable* GetFocusTraversableParent(); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
446 | 447 |
447 // Indicates if we should handle the upcoming Alt key release event. | 448 // Indicates if we should handle the upcoming Alt key release event. |
448 bool should_handle_menu_key_release_; | 449 bool should_handle_menu_key_release_; |
449 | 450 |
450 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 451 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
451 }; | 452 }; |
452 | 453 |
453 } // namespace views | 454 } // namespace views |
454 | 455 |
455 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 456 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
OLD | NEW |