Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(203)

Side by Side Diff: ui/views/widget/native_widget_private.h

Issue 136093007: Widget::ShouldUseNativeFrame is now meaningful on Linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase. Created 6 years, 10 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2012 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 UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
7 7
8 #include "base/strings/string16.h" 8 #include "base/strings/string16.h"
9 #include "ui/base/ui_base_types.h" 9 #include "ui/base/ui_base_types.h"
10 #include "ui/gfx/native_widget_types.h" 10 #include "ui/gfx/native_widget_types.h"
(...skipping 62 matching lines...) Expand 10 before | Expand all | Expand 10 after
73 static bool IsTouchDown(); 73 static bool IsTouchDown();
74 74
75 // Initializes the NativeWidget. 75 // Initializes the NativeWidget.
76 virtual void InitNativeWidget(const Widget::InitParams& params) = 0; 76 virtual void InitNativeWidget(const Widget::InitParams& params) = 0;
77 77
78 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if 78 // Returns a NonClientFrameView for the widget's NonClientView, or NULL if
79 // the NativeWidget wants no special NonClientFrameView. 79 // the NativeWidget wants no special NonClientFrameView.
80 virtual NonClientFrameView* CreateNonClientFrameView() = 0; 80 virtual NonClientFrameView* CreateNonClientFrameView() = 0;
81 81
82 virtual bool ShouldUseNativeFrame() const = 0; 82 virtual bool ShouldUseNativeFrame() const = 0;
83 virtual bool ShouldWindowContentsBeTransparent() const = 0;
83 virtual void FrameTypeChanged() = 0; 84 virtual void FrameTypeChanged() = 0;
84 85
85 // Returns the Widget associated with this NativeWidget. This function is 86 // Returns the Widget associated with this NativeWidget. This function is
86 // guaranteed to return non-NULL for the lifetime of the NativeWidget. 87 // guaranteed to return non-NULL for the lifetime of the NativeWidget.
87 virtual Widget* GetWidget() = 0; 88 virtual Widget* GetWidget() = 0;
88 virtual const Widget* GetWidget() const = 0; 89 virtual const Widget* GetWidget() const = 0;
89 90
90 // Returns the NativeView/Window associated with this NativeWidget. 91 // Returns the NativeView/Window associated with this NativeWidget.
91 virtual gfx::NativeView GetNativeView() const = 0; 92 virtual gfx::NativeView GetNativeView() const = 0;
92 virtual gfx::NativeWindow GetNativeWindow() const = 0; 93 virtual gfx::NativeWindow GetNativeWindow() const = 0;
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
220 221
221 // Overridden from NativeWidget: 222 // Overridden from NativeWidget:
222 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE; 223 virtual internal::NativeWidgetPrivate* AsNativeWidgetPrivate() OVERRIDE;
223 virtual ui::EventHandler* GetEventHandler() = 0; 224 virtual ui::EventHandler* GetEventHandler() = 0;
224 }; 225 };
225 226
226 } // namespace internal 227 } // namespace internal
227 } // namespace views 228 } // namespace views
228 229
229 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_ 230 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_PRIVATE_H_
OLDNEW
« no previous file with comments | « ui/views/widget/native_widget_aura.cc ('k') | ui/views/widget/widget.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698