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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.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_NATIVE_WIDGET_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
7 7
8 #include "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/activation_change_observer.h" 9 #include "ui/aura/client/activation_change_observer.h"
10 #include "ui/aura/client/activation_delegate.h" 10 #include "ui/aura/client/activation_delegate.h"
(...skipping 78 matching lines...) Expand 10 before | Expand all | Expand 10 after
89 89
90 // Ensures that the correct window is activated/deactivated based on whether 90 // Ensures that the correct window is activated/deactivated based on whether
91 // we are being activated/deactivated. 91 // we are being activated/deactivated.
92 void HandleActivationChanged(bool active); 92 void HandleActivationChanged(bool active);
93 93
94 protected: 94 protected:
95 // Overridden from internal::NativeWidgetPrivate: 95 // Overridden from internal::NativeWidgetPrivate:
96 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE; 96 virtual void InitNativeWidget(const Widget::InitParams& params) OVERRIDE;
97 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE; 97 virtual NonClientFrameView* CreateNonClientFrameView() OVERRIDE;
98 virtual bool ShouldUseNativeFrame() const OVERRIDE; 98 virtual bool ShouldUseNativeFrame() const OVERRIDE;
99 virtual bool ShouldWindowContentsBeTransparent() const OVERRIDE;
99 virtual void FrameTypeChanged() OVERRIDE; 100 virtual void FrameTypeChanged() OVERRIDE;
100 virtual Widget* GetWidget() OVERRIDE; 101 virtual Widget* GetWidget() OVERRIDE;
101 virtual const Widget* GetWidget() const OVERRIDE; 102 virtual const Widget* GetWidget() const OVERRIDE;
102 virtual gfx::NativeView GetNativeView() const OVERRIDE; 103 virtual gfx::NativeView GetNativeView() const OVERRIDE;
103 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE; 104 virtual gfx::NativeWindow GetNativeWindow() const OVERRIDE;
104 virtual Widget* GetTopLevelWidget() OVERRIDE; 105 virtual Widget* GetTopLevelWidget() OVERRIDE;
105 virtual const ui::Compositor* GetCompositor() const OVERRIDE; 106 virtual const ui::Compositor* GetCompositor() const OVERRIDE;
106 virtual ui::Compositor* GetCompositor() OVERRIDE; 107 virtual ui::Compositor* GetCompositor() OVERRIDE;
107 virtual ui::Layer* GetLayer() OVERRIDE; 108 virtual ui::Layer* GetLayer() OVERRIDE;
108 virtual void ReorderNativeViews() OVERRIDE; 109 virtual void ReorderNativeViews() OVERRIDE;
(...skipping 206 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 316
316 // See class documentation for Widget in widget.h for a note about type. 317 // See class documentation for Widget in widget.h for a note about type.
317 Widget::InitParams::Type widget_type_; 318 Widget::InitParams::Type widget_type_;
318 319
319 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 320 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
320 }; 321 };
321 322
322 } // namespace views 323 } // namespace views
323 324
324 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 325 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/toolbar/toolbar_view.cc ('k') | ui/views/widget/desktop_aura/desktop_native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698