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

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

Issue 2222703002: Aura Icon Capture (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Clear Property When Null Created 4 years, 4 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 32 matching lines...) Expand 10 before | Expand all | Expand 10 after
43 public aura::client::DragDropDelegate { 43 public aura::client::DragDropDelegate {
44 public: 44 public:
45 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); 45 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate);
46 46
47 // Called internally by NativeWidgetAura and DesktopNativeWidgetAura to 47 // Called internally by NativeWidgetAura and DesktopNativeWidgetAura to
48 // associate |native_widget| with |window|. 48 // associate |native_widget| with |window|.
49 static void RegisterNativeWidgetForWindow( 49 static void RegisterNativeWidgetForWindow(
50 internal::NativeWidgetPrivate* native_widget, 50 internal::NativeWidgetPrivate* native_widget,
51 aura::Window* window); 51 aura::Window* window);
52 52
53 // Assign an icon to aura window.
54 static void AssignIconToAuraWindow(aura::Window* window,
55 const gfx::ImageSkia& window_icon,
56 const gfx::ImageSkia& app_icon);
57
53 // Overridden from internal::NativeWidgetPrivate: 58 // Overridden from internal::NativeWidgetPrivate:
54 void InitNativeWidget(const Widget::InitParams& params) override; 59 void InitNativeWidget(const Widget::InitParams& params) override;
55 void OnWidgetInitDone() override; 60 void OnWidgetInitDone() override;
56 NonClientFrameView* CreateNonClientFrameView() override; 61 NonClientFrameView* CreateNonClientFrameView() override;
57 bool ShouldUseNativeFrame() const override; 62 bool ShouldUseNativeFrame() const override;
58 bool ShouldWindowContentsBeTransparent() const override; 63 bool ShouldWindowContentsBeTransparent() const override;
59 void FrameTypeChanged() override; 64 void FrameTypeChanged() override;
60 Widget* GetWidget() override; 65 Widget* GetWidget() override;
61 const Widget* GetWidget() const override; 66 const Widget* GetWidget() const override;
62 gfx::NativeView GetNativeView() const override; 67 gfx::NativeView GetNativeView() const override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 // The following factory is used for calls to close the NativeWidgetAura 235 // The following factory is used for calls to close the NativeWidgetAura
231 // instance. 236 // instance.
232 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 237 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
233 238
234 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 239 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
235 }; 240 };
236 241
237 } // namespace views 242 } // namespace views
238 243
239 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 244 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/desktop_aura/desktop_native_widget_aura.cc ('k') | ui/views/widget/native_widget_aura.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698