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

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

Issue 1403293003: Introduce AndroidFocusRules and NativeWidgetAndroid (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: reviews Created 5 years, 1 month 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/widget/android/native_widget_android.cc ('k') | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 "base/memory/weak_ptr.h" 8 #include "base/memory/weak_ptr.h"
9 #include "ui/aura/client/focus_change_observer.h" 9 #include "ui/aura/client/focus_change_observer.h"
10 #include "ui/aura/window_delegate.h" 10 #include "ui/aura/window_delegate.h"
(...skipping 23 matching lines...) Expand all
34 : public internal::NativeWidgetPrivate, 34 : public internal::NativeWidgetPrivate,
35 public aura::WindowDelegate, 35 public aura::WindowDelegate,
36 public aura::WindowObserver, 36 public aura::WindowObserver,
37 public aura::client::ActivationDelegate, 37 public aura::client::ActivationDelegate,
38 public aura::client::ActivationChangeObserver, 38 public aura::client::ActivationChangeObserver,
39 public aura::client::FocusChangeObserver, 39 public aura::client::FocusChangeObserver,
40 public aura::client::DragDropDelegate { 40 public aura::client::DragDropDelegate {
41 public: 41 public:
42 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate); 42 explicit NativeWidgetAura(internal::NativeWidgetDelegate* delegate);
43 43
44 // Called internally by NativeWidgetAura and DesktopNativeWidgetAura to 44 // Called internally by NativeWidget implementations to associate
45 // associate |native_widget| with |window|. 45 // |native_widget| with |window|.
46 static void RegisterNativeWidgetForWindow( 46 static void RegisterNativeWidgetForWindow(
47 internal::NativeWidgetPrivate* native_widget, 47 internal::NativeWidgetPrivate* native_widget,
48 aura::Window* window); 48 aura::Window* window);
49 49
50 // Overridden from internal::NativeWidgetPrivate: 50 // Overridden from internal::NativeWidgetPrivate:
51 void InitNativeWidget(const Widget::InitParams& params) override; 51 void InitNativeWidget(const Widget::InitParams& params) override;
52 NonClientFrameView* CreateNonClientFrameView() override; 52 NonClientFrameView* CreateNonClientFrameView() override;
53 bool ShouldUseNativeFrame() const override; 53 bool ShouldUseNativeFrame() const override;
54 bool ShouldWindowContentsBeTransparent() const override; 54 bool ShouldWindowContentsBeTransparent() const override;
55 void FrameTypeChanged() override; 55 void FrameTypeChanged() override;
(...skipping 168 matching lines...) Expand 10 before | Expand all | Expand 10 after
224 // The following factory is used for calls to close the NativeWidgetAura 224 // The following factory is used for calls to close the NativeWidgetAura
225 // instance. 225 // instance.
226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_; 226 base::WeakPtrFactory<NativeWidgetAura> close_widget_factory_;
227 227
228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura); 228 DISALLOW_COPY_AND_ASSIGN(NativeWidgetAura);
229 }; 229 };
230 230
231 } // namespace views 231 } // namespace views
232 232
233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_ 233 #endif // UI_VIEWS_WIDGET_NATIVE_WIDGET_AURA_H_
OLDNEW
« no previous file with comments | « ui/views/widget/android/native_widget_android.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698