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

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

Issue 2694213003: mash: wires up shadows for mash (Closed)
Patch Set: defaults test Created 3 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
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_AURA_H_ 5 #ifndef UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 6 #define UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 39 matching lines...) Expand 10 before | Expand all | Expand 10 after
50 // associate |native_widget| with |window|. 50 // associate |native_widget| with |window|.
51 static void RegisterNativeWidgetForWindow( 51 static void RegisterNativeWidgetForWindow(
52 internal::NativeWidgetPrivate* native_widget, 52 internal::NativeWidgetPrivate* native_widget,
53 aura::Window* window); 53 aura::Window* window);
54 54
55 // Assign an icon to aura window. 55 // Assign an icon to aura window.
56 static void AssignIconToAuraWindow(aura::Window* window, 56 static void AssignIconToAuraWindow(aura::Window* window,
57 const gfx::ImageSkia& window_icon, 57 const gfx::ImageSkia& window_icon,
58 const gfx::ImageSkia& app_icon); 58 const gfx::ImageSkia& app_icon);
59 59
60 // If necessary, sets the ShadowElevation of |window| from |params|.
61 static void SetShadowElevationFromInitParams(
62 aura::Window* window,
63 const Widget::InitParams& params);
64
60 // Overridden from internal::NativeWidgetPrivate: 65 // Overridden from internal::NativeWidgetPrivate:
61 void InitNativeWidget(const Widget::InitParams& params) override; 66 void InitNativeWidget(const Widget::InitParams& params) override;
62 void OnWidgetInitDone() override; 67 void OnWidgetInitDone() override;
63 NonClientFrameView* CreateNonClientFrameView() override; 68 NonClientFrameView* CreateNonClientFrameView() override;
64 bool ShouldUseNativeFrame() const override; 69 bool ShouldUseNativeFrame() const override;
65 bool ShouldWindowContentsBeTransparent() const override; 70 bool ShouldWindowContentsBeTransparent() const override;
66 void FrameTypeChanged() override; 71 void FrameTypeChanged() override;
67 Widget* GetWidget() override; 72 Widget* GetWidget() override;
68 const Widget* GetWidget() const override; 73 const Widget* GetWidget() const override;
69 gfx::NativeView GetNativeView() const override; 74 gfx::NativeView GetNativeView() const override;
(...skipping 166 matching lines...) Expand 10 before | Expand all | Expand 10 after
236 // The following factory is used for calls to close the NativeWidgetAura 241 // The following factory is used for calls to close the NativeWidgetAura
237 // instance. 242 // instance.
238 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 243 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
239 244
240 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 245 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
241 }; 246 };
242 247
243 } // namespace views 248 } // namespace views
244 249
245 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 250 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_window_tree_host_x11.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698