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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_root_window_host.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
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_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
7 7
8 #include "base/memory/scoped_ptr.h" 8 #include "base/memory/scoped_ptr.h"
9 #include "ui/aura/root_window.h" 9 #include "ui/aura/root_window.h"
10 #include "ui/base/ui_base_types.h" 10 #include "ui/base/ui_base_types.h"
(...skipping 107 matching lines...) Expand 10 before | Expand all | Expand 10 after
118 virtual void ClearNativeFocus() = 0; 118 virtual void ClearNativeFocus() = 0;
119 119
120 virtual Widget::MoveLoopResult RunMoveLoop( 120 virtual Widget::MoveLoopResult RunMoveLoop(
121 const gfx::Vector2d& drag_offset, 121 const gfx::Vector2d& drag_offset,
122 Widget::MoveLoopSource source, 122 Widget::MoveLoopSource source,
123 Widget::MoveLoopEscapeBehavior escape_behavior) = 0; 123 Widget::MoveLoopEscapeBehavior escape_behavior) = 0;
124 virtual void EndMoveLoop() = 0; 124 virtual void EndMoveLoop() = 0;
125 125
126 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0; 126 virtual void SetVisibilityChangedAnimationsEnabled(bool value) = 0;
127 127
128 virtual bool ShouldUseNativeFrame() = 0; 128 // Determines whether the window should use native title bar and borders.
129 virtual bool ShouldUseNativeFrame() const = 0;
130 // Determines whether the window contents should be rendered transparently
131 // (for example, so that they can overhang onto the window title bar).
132 virtual bool ShouldWindowContentsBeTransparent() const = 0;
129 virtual void FrameTypeChanged() = 0; 133 virtual void FrameTypeChanged() = 0;
130 virtual NonClientFrameView* CreateNonClientFrameView() = 0; 134 virtual NonClientFrameView* CreateNonClientFrameView() = 0;
131 135
132 virtual void SetFullscreen(bool fullscreen) = 0; 136 virtual void SetFullscreen(bool fullscreen) = 0;
133 virtual bool IsFullscreen() const = 0; 137 virtual bool IsFullscreen() const = 0;
134 138
135 virtual void SetOpacity(unsigned char opacity) = 0; 139 virtual void SetOpacity(unsigned char opacity) = 0;
136 140
137 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon, 141 virtual void SetWindowIcons(const gfx::ImageSkia& window_icon,
138 const gfx::ImageSkia& app_icon) = 0; 142 const gfx::ImageSkia& app_icon) = 0;
(...skipping 10 matching lines...) Expand all
149 virtual void OnNativeWidgetBlur() = 0; 153 virtual void OnNativeWidgetBlur() = 0;
150 154
151 // Returns true if the Widget was closed but is still showing because of 155 // Returns true if the Widget was closed but is still showing because of
152 // animations. 156 // animations.
153 virtual bool IsAnimatingClosed() const = 0; 157 virtual bool IsAnimatingClosed() const = 0;
154 }; 158 };
155 159
156 } // namespace views 160 } // namespace views
157 161
158 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_ 162 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_ROOT_WINDOW_HOST_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698