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

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

Issue 1815593002: Remove windowed NPAPI code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@make_test_plugin_windowless
Patch Set: rebase 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 115 matching lines...) Expand 10 before | Expand all | Expand 10 after
126 bool IsShowing() override; 126 bool IsShowing() override;
127 gfx::Rect GetViewBounds() const override; 127 gfx::Rect GetViewBounds() const override;
128 void SetBackgroundColor(SkColor color) override; 128 void SetBackgroundColor(SkColor color) override;
129 gfx::Size GetVisibleViewportSize() const override; 129 gfx::Size GetVisibleViewportSize() const override;
130 void SetInsets(const gfx::Insets& insets) override; 130 void SetInsets(const gfx::Insets& insets) override;
131 131
132 // Overridden from RenderWidgetHostViewBase: 132 // Overridden from RenderWidgetHostViewBase:
133 void InitAsPopup(RenderWidgetHostView* parent_host_view, 133 void InitAsPopup(RenderWidgetHostView* parent_host_view,
134 const gfx::Rect& pos) override; 134 const gfx::Rect& pos) override;
135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override; 135 void InitAsFullscreen(RenderWidgetHostView* reference_host_view) override;
136 void MovePluginWindows(const std::vector<WebPluginGeometry>& moves) override;
137 void Focus() override; 136 void Focus() override;
138 void UpdateCursor(const WebCursor& cursor) override; 137 void UpdateCursor(const WebCursor& cursor) override;
139 void SetIsLoading(bool is_loading) override; 138 void SetIsLoading(bool is_loading) override;
140 void TextInputStateChanged( 139 void TextInputStateChanged(
141 const ViewHostMsg_TextInputState_Params& params) override; 140 const ViewHostMsg_TextInputState_Params& params) override;
142 void ImeCancelComposition() override; 141 void ImeCancelComposition() override;
143 void ImeCompositionRangeChanged( 142 void ImeCompositionRangeChanged(
144 const gfx::Range& range, 143 const gfx::Range& range,
145 const std::vector<gfx::Rect>& character_bounds) override; 144 const std::vector<gfx::Rect>& character_bounds) override;
146 void RenderProcessGone(base::TerminationStatus status, 145 void RenderProcessGone(base::TerminationStatus status,
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
284 283
285 // Overridden from aura::client::FocusChangeObserver: 284 // Overridden from aura::client::FocusChangeObserver:
286 void OnWindowFocused(aura::Window* gained_focus, 285 void OnWindowFocused(aura::Window* gained_focus,
287 aura::Window* lost_focus) override; 286 aura::Window* lost_focus) override;
288 287
289 // Overridden from aura::WindowTreeHostObserver: 288 // Overridden from aura::WindowTreeHostObserver:
290 void OnHostMoved(const aura::WindowTreeHost* host, 289 void OnHostMoved(const aura::WindowTreeHost* host,
291 const gfx::Point& new_origin) override; 290 const gfx::Point& new_origin) override;
292 291
293 #if defined(OS_WIN) 292 #if defined(OS_WIN)
294 // Sets the cutout rects from constrained windows. These are rectangles that
295 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
296 // rects.
297 void UpdateConstrainedWindowRects(const std::vector<gfx::Rect>& rects);
298
299 // Updates the cursor clip region. Used for mouse locking. 293 // Updates the cursor clip region. Used for mouse locking.
300 void UpdateMouseLockRegion(); 294 void UpdateMouseLockRegion();
301 295
302 // Notification that the LegacyRenderWidgetHostHWND was destroyed. 296 // Notification that the LegacyRenderWidgetHostHWND was destroyed.
303 void OnLegacyWindowDestroyed(); 297 void OnLegacyWindowDestroyed();
304 #endif 298 #endif
305 299
306 void DisambiguationPopupRendered(const SkBitmap& result, 300 void DisambiguationPopupRendered(const SkBitmap& result,
307 ReadbackResponse response); 301 ReadbackResponse response);
308 302
(...skipping 322 matching lines...) Expand 10 before | Expand all | Expand 10 after
631 // Used to track the last cursor visibility update that was sent to the 625 // Used to track the last cursor visibility update that was sent to the
632 // renderer via NotifyRendererOfCursorVisibilityState(). 626 // renderer via NotifyRendererOfCursorVisibilityState().
633 enum CursorVisibilityState { 627 enum CursorVisibilityState {
634 UNKNOWN, 628 UNKNOWN,
635 VISIBLE, 629 VISIBLE,
636 NOT_VISIBLE, 630 NOT_VISIBLE,
637 }; 631 };
638 CursorVisibilityState cursor_visibility_state_in_renderer_; 632 CursorVisibilityState cursor_visibility_state_in_renderer_;
639 633
640 #if defined(OS_WIN) 634 #if defined(OS_WIN)
641 // The list of rectangles from constrained windows over this view. Windowed
642 // NPAPI plugins shouldn't draw over them.
643 std::vector<gfx::Rect> constrained_rects_;
644
645 typedef std::map<HWND, WebPluginGeometry> PluginWindowMoves;
646 // Contains information about each windowed plugin's clip and cutout rects (
647 // from the renderer). This is needed because when the transient windows
648 // over this view changes, we need this information in order to create a new
649 // region for the HWND.
650 PluginWindowMoves plugin_window_moves_;
651
652 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used 635 // The LegacyRenderWidgetHostHWND class provides a dummy HWND which is used
653 // for accessibility, as the container for windowless plugins like 636 // for accessibility, as the container for windowless plugins like
654 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads, 637 // Flash/Silverlight, etc and for legacy drivers for trackpoints/trackpads,
655 // etc. 638 // etc.
656 // The LegacyRenderWidgetHostHWND instance is created during the first call 639 // The LegacyRenderWidgetHostHWND instance is created during the first call
657 // to RenderWidgetHostViewAura::InternalSetBounds. The instance is destroyed 640 // to RenderWidgetHostViewAura::InternalSetBounds. The instance is destroyed
658 // when the LegacyRenderWidgetHostHWND hwnd is destroyed. 641 // when the LegacyRenderWidgetHostHWND hwnd is destroyed.
659 content::LegacyRenderWidgetHostHWND* legacy_render_widget_host_HWND_; 642 content::LegacyRenderWidgetHostHWND* legacy_render_widget_host_HWND_;
660 643
661 // Set to true if the legacy_render_widget_host_HWND_ instance was destroyed 644 // Set to true if the legacy_render_widget_host_HWND_ instance was destroyed
(...skipping 49 matching lines...) Expand 10 before | Expand all | Expand 10 after
711 bool disable_input_event_router_for_testing_; 694 bool disable_input_event_router_for_testing_;
712 695
713 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 696 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
714 697
715 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 698 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
716 }; 699 };
717 700
718 } // namespace content 701 } // namespace content
719 702
720 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 703 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698