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

Side by Side Diff: content/browser/renderer_host/render_widget_host_view_aura.h

Issue 1711103002: Implement lifetime observer on RenderWidgetHostViewBase. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebased to r378132. Created 4 years, 9 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 CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 338 matching lines...) Expand 10 before | Expand all | Expand 10 after
349 349
350 protected: 350 protected:
351 ~RenderWidgetHostViewAura() override; 351 ~RenderWidgetHostViewAura() override;
352 352
353 // Exposed for tests. 353 // Exposed for tests.
354 aura::Window* window() { return window_; } 354 aura::Window* window() { return window_; }
355 355
356 DelegatedFrameHost* GetDelegatedFrameHost() const { 356 DelegatedFrameHost* GetDelegatedFrameHost() const {
357 return delegated_frame_host_.get(); 357 return delegated_frame_host_.get();
358 } 358 }
359
359 const ui::MotionEventAura& pointer_state() const { return pointer_state_; } 360 const ui::MotionEventAura& pointer_state() const { return pointer_state_; }
360 361
361 private: 362 private:
362 friend class RenderWidgetHostViewAuraCopyRequestTest; 363 friend class RenderWidgetHostViewAuraCopyRequestTest;
363 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 364 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
364 PopupRetainsCaptureAfterMouseRelease); 365 PopupRetainsCaptureAfterMouseRelease);
365 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText); 366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SetCompositionText);
366 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState); 367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventState);
367 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 368 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
368 TouchEventPositionsArentRounded); 369 TouchEventPositionsArentRounded);
(...skipping 334 matching lines...) Expand 10 before | Expand all | Expand 10 after
703 float device_scale_factor_; 704 float device_scale_factor_;
704 705
705 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 706 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
706 707
707 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 708 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
708 }; 709 };
709 710
710 } // namespace content 711 } // namespace content
711 712
712 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 713 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698