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

Side by Side Diff: ui/views/widget/desktop_aura/desktop_native_widget_aura.h

Issue 2667703002: Linux Aura: Use Aura theme on all windows when 'Use Classic theme' is used (Closed)
Patch Set: Don't use NativeWidgetPrivate 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_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 <string> 8 #include <string>
9 9
10 #include "base/macros.h" 10 #include "base/macros.h"
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
90 } 90 }
91 91
92 aura::Window* content_window() { return content_window_; } 92 aura::Window* content_window() { return content_window_; }
93 93
94 Widget::InitParams::Type widget_type() const { return widget_type_; } 94 Widget::InitParams::Type widget_type() const { return widget_type_; }
95 95
96 // Ensures that the correct window is activated/deactivated based on whether 96 // Ensures that the correct window is activated/deactivated based on whether
97 // we are being activated/deactivated. 97 // we are being activated/deactivated.
98 void HandleActivationChanged(bool active); 98 void HandleActivationChanged(bool active);
99 99
100 // Overridden from internal::NativeWidgetPrivate:
101 void SetNativeWindowProperty(const char* name, void* value) override;
sky 2017/01/31 17:37:18 Move implementation to match position.
Tom (Use chromium acct) 2017/01/31 18:10:29 Done.
102
100 protected: 103 protected:
101 // Overridden from internal::NativeWidgetPrivate: 104 // Overridden from internal::NativeWidgetPrivate:
102 void InitNativeWidget(const Widget::InitParams& params) override; 105 void InitNativeWidget(const Widget::InitParams& params) override;
103 void OnWidgetInitDone() override; 106 void OnWidgetInitDone() override;
104 NonClientFrameView* CreateNonClientFrameView() override; 107 NonClientFrameView* CreateNonClientFrameView() override;
105 bool ShouldUseNativeFrame() const override; 108 bool ShouldUseNativeFrame() const override;
106 bool ShouldWindowContentsBeTransparent() const override; 109 bool ShouldWindowContentsBeTransparent() const override;
107 void FrameTypeChanged() override; 110 void FrameTypeChanged() override;
108 Widget* GetWidget() override; 111 Widget* GetWidget() override;
109 const Widget* GetWidget() const override; 112 const Widget* GetWidget() const override;
110 gfx::NativeView GetNativeView() const override; 113 gfx::NativeView GetNativeView() const override;
111 gfx::NativeWindow GetNativeWindow() const override; 114 gfx::NativeWindow GetNativeWindow() const override;
112 Widget* GetTopLevelWidget() override; 115 Widget* GetTopLevelWidget() override;
113 const ui::Compositor* GetCompositor() const override; 116 const ui::Compositor* GetCompositor() const override;
114 const ui::Layer* GetLayer() const override; 117 const ui::Layer* GetLayer() const override;
115 void ReorderNativeViews() override; 118 void ReorderNativeViews() override;
116 void ViewRemoved(View* view) override; 119 void ViewRemoved(View* view) override;
117 void SetNativeWindowProperty(const char* name, void* value) override;
118 void* GetNativeWindowProperty(const char* name) const override; 120 void* GetNativeWindowProperty(const char* name) const override;
119 TooltipManager* GetTooltipManager() const override; 121 TooltipManager* GetTooltipManager() const override;
120 void SetCapture() override; 122 void SetCapture() override;
121 void ReleaseCapture() override; 123 void ReleaseCapture() override;
122 bool HasCapture() const override; 124 bool HasCapture() const override;
123 ui::InputMethod* GetInputMethod() override; 125 ui::InputMethod* GetInputMethod() override;
124 void CenterWindow(const gfx::Size& size) override; 126 void CenterWindow(const gfx::Size& size) override;
125 void GetWindowPlacement(gfx::Rect* bounds, 127 void GetWindowPlacement(gfx::Rect* bounds,
126 ui::WindowShowState* maximized) const override; 128 ui::WindowShowState* maximized) const override;
127 bool SetWindowTitle(const base::string16& title) override; 129 bool SetWindowTitle(const base::string16& title) override;
(...skipping 186 matching lines...) Expand 10 before | Expand all | Expand 10 after
314 // The following factory is used for calls to close the NativeWidgetAura 316 // The following factory is used for calls to close the NativeWidgetAura
315 // instance. 317 // instance.
316 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_; 318 base::WeakPtrFactory<DesktopNativeWidgetAura> close_widget_factory_;
317 319
318 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura); 320 DISALLOW_COPY_AND_ASSIGN(DesktopNativeWidgetAura);
319 }; 321 };
320 322
321 } // namespace views 323 } // namespace views
322 324
323 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_ 325 #endif // UI_VIEWS_WIDGET_DESKTOP_AURA_DESKTOP_NATIVE_WIDGET_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698