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 std::wstring& name, | 189 virtual void SetNativeWindowProperty(const char* name, void* value); |
190 void* value); | 190 virtual void* GetNativeWindowProperty(const char* name); |
191 virtual void* GetNativeWindowProperty(const std::wstring& name); | |
192 virtual ThemeProvider* GetThemeProvider() const; | 191 virtual ThemeProvider* GetThemeProvider() const; |
193 virtual ThemeProvider* GetDefaultThemeProvider() const; | 192 virtual ThemeProvider* GetDefaultThemeProvider() const; |
194 virtual FocusManager* GetFocusManager(); | 193 virtual FocusManager* GetFocusManager(); |
195 virtual void ViewHierarchyChanged(bool is_add, View *parent, | 194 virtual void ViewHierarchyChanged(bool is_add, View *parent, |
196 View *child); | 195 View *child); |
197 virtual bool ContainsNativeView(gfx::NativeView native_view); | 196 virtual bool ContainsNativeView(gfx::NativeView native_view); |
198 | 197 |
199 // Overridden from FocusTraversable: | 198 // Overridden from FocusTraversable: |
200 virtual FocusSearch* GetFocusSearch(); | 199 virtual FocusSearch* GetFocusSearch(); |
201 virtual FocusTraversable* GetFocusTraversableParent(); | 200 virtual FocusTraversable* GetFocusTraversableParent(); |
(...skipping 245 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
447 | 446 |
448 // Indicates if we should handle the upcoming Alt key release event. | 447 // Indicates if we should handle the upcoming Alt key release event. |
449 bool should_handle_menu_key_release_; | 448 bool should_handle_menu_key_release_; |
450 | 449 |
451 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); | 450 DISALLOW_COPY_AND_ASSIGN(WidgetGtk); |
452 }; | 451 }; |
453 | 452 |
454 } // namespace views | 453 } // namespace views |
455 | 454 |
456 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ | 455 #endif // VIEWS_WIDGET_WIDGET_GTK_H_ |
OLD | NEW |