OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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_NATIVE_WIDGET_GTK_H_ | 5 #ifndef VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ | 6 #define VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
7 #pragma once | 7 #pragma once |
8 | 8 |
9 #include <gtk/gtk.h> | 9 #include <gtk/gtk.h> |
10 | 10 |
(...skipping 146 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
157 // Overridden from internal::NativeWidgetPrivate: | 157 // Overridden from internal::NativeWidgetPrivate: |
158 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; | 158 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; |
159 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; | 159 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; |
160 virtual void UpdateFrameAfterFrameChange() OVERRIDE; | 160 virtual void UpdateFrameAfterFrameChange() OVERRIDE; |
161 virtual bool ShouldUseNativeFrame() const OVERRIDE; | 161 virtual bool ShouldUseNativeFrame() const OVERRIDE; |
162 virtual void FrameTypeChanged() OVERRIDE; | 162 virtual void FrameTypeChanged() OVERRIDE; |
163 virtual Widget* GetWidget() OVERRIDE; | 163 virtual Widget* GetWidget() OVERRIDE; |
164 virtual const Widget* GetWidget() const OVERRIDE; | 164 virtual const Widget* GetWidget() const OVERRIDE; |
165 virtual gfx::NativeView GetNativeView() const OVERRIDE; | 165 virtual gfx::NativeView GetNativeView() const OVERRIDE; |
166 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; | 166 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; |
| 167 virtual Widget* GetTopLevelWidget() OVERRIDE; |
167 virtual const ui::Compositor* GetCompositor() const OVERRIDE; | 168 virtual const ui::Compositor* GetCompositor() const OVERRIDE; |
168 virtual ui::Compositor* GetCompositor() OVERRIDE; | 169 virtual ui::Compositor* GetCompositor() OVERRIDE; |
169 virtual void MarkLayerDirty() OVERRIDE; | 170 virtual void MarkLayerDirty() OVERRIDE; |
170 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, | 171 virtual void CalculateOffsetToAncestorWithLayer(gfx::Point* offset, |
171 View** ancestor) OVERRIDE; | 172 View** ancestor) OVERRIDE; |
172 virtual void ViewRemoved(View* view) OVERRIDE; | 173 virtual void ViewRemoved(View* view) OVERRIDE; |
173 virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; | 174 virtual void SetNativeWindowProperty(const char* name, void* value) OVERRIDE; |
174 virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE; | 175 virtual void* GetNativeWindowProperty(const char* name) const OVERRIDE; |
175 virtual TooltipManager* GetTooltipManager() const OVERRIDE; | 176 virtual TooltipManager* GetTooltipManager() const OVERRIDE; |
176 virtual bool IsScreenReaderActive() const OVERRIDE; | 177 virtual bool IsScreenReaderActive() const OVERRIDE; |
(...skipping 275 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
452 | 453 |
453 // The compositor for accelerated drawing. | 454 // The compositor for accelerated drawing. |
454 scoped_refptr<ui::Compositor> compositor_; | 455 scoped_refptr<ui::Compositor> compositor_; |
455 | 456 |
456 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); | 457 DISALLOW_COPY_AND_ASSIGN(NativeWidgetGtk); |
457 }; | 458 }; |
458 | 459 |
459 } // namespace views | 460 } // namespace views |
460 | 461 |
461 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ | 462 #endif // VIEWS_WIDGET_NATIVE_WIDGET_GTK_H_ |
OLD | NEW |