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

Side by Side Diff: ui/views/widget/android/native_widget_android.h

Issue 1565243002: Fixes bug where client area would not get set correctly (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 4 years, 11 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
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/widget/android/native_widget_android.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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_ANDROID_NATIVE_WIDGET_ANDROID_H_ 5 #ifndef UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_
6 #define UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ 6 #define UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/memory/weak_ptr.h" 10 #include "base/memory/weak_ptr.h"
(...skipping 41 matching lines...) Expand 10 before | Expand all | Expand 10 after
52 public aura::client::FocusChangeObserver, 52 public aura::client::FocusChangeObserver,
53 public aura::client::DragDropDelegate, 53 public aura::client::DragDropDelegate,
54 public aura::WindowTreeHostObserver { 54 public aura::WindowTreeHostObserver {
55 public: 55 public:
56 explicit NativeWidgetAndroid(internal::NativeWidgetDelegate* delegate); 56 explicit NativeWidgetAndroid(internal::NativeWidgetDelegate* delegate);
57 57
58 aura::WindowTreeHost* host() { return host_.get(); } 58 aura::WindowTreeHost* host() { return host_.get(); }
59 59
60 // Overridden from internal::NativeWidgetPrivate: 60 // Overridden from internal::NativeWidgetPrivate:
61 void InitNativeWidget(const Widget::InitParams& params) override; 61 void InitNativeWidget(const Widget::InitParams& params) override;
62 void OnWidgetInitDone() override;
62 NonClientFrameView* CreateNonClientFrameView() override; 63 NonClientFrameView* CreateNonClientFrameView() override;
63 bool ShouldUseNativeFrame() const override; 64 bool ShouldUseNativeFrame() const override;
64 bool ShouldWindowContentsBeTransparent() const override; 65 bool ShouldWindowContentsBeTransparent() const override;
65 void FrameTypeChanged() override; 66 void FrameTypeChanged() override;
66 Widget* GetWidget() override; 67 Widget* GetWidget() override;
67 const Widget* GetWidget() const override; 68 const Widget* GetWidget() const override;
68 gfx::NativeView GetNativeView() const override; 69 gfx::NativeView GetNativeView() const override;
69 gfx::NativeWindow GetNativeWindow() const override; 70 gfx::NativeWindow GetNativeWindow() const override;
70 Widget* GetTopLevelWidget() override; 71 Widget* GetTopLevelWidget() override;
71 const ui::Compositor* GetCompositor() const override; 72 const ui::Compositor* GetCompositor() const override;
(...skipping 167 matching lines...) Expand 10 before | Expand all | Expand 10 after
239 // The following factory is used for calls to close the 240 // The following factory is used for calls to close the
240 // NativeWidgetAndroid instance. 241 // NativeWidgetAndroid instance.
241 base::WeakPtrFactory<NativeWidgetAndroid> close_widget_factory_; 242 base::WeakPtrFactory<NativeWidgetAndroid> close_widget_factory_;
242 243
243 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAndroid); 244 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAndroid);
244 }; 245 };
245 246
246 } // namespace views 247 } // namespace views
247 248
248 #endif // UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_ 249 #endif // UI_VIEWS_WIDGET_ANDROID_NATIVE_WIDGET_ANDROID_H_
OLDNEW
« no previous file with comments | « ui/views/mus/native_widget_mus.cc ('k') | ui/views/widget/android/native_widget_android.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698