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

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

Issue 63013002: Revert 233297 "Fix windowed NPAPI plugins covering up dialogs on..." (Closed) Base URL: svn://svn.chromium.org/chrome/
Patch Set: Created 7 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 | Annotate | Revision Log
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 <map> 8 #include <map>
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync); 388 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, TouchEventSyncAsync);
389 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow); 389 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, SwapNotifiesWindow);
390 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 390 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
391 SkippedDelegatedFrames); 391 SkippedDelegatedFrames);
392 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange); 392 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, OutputSurfaceIdChange);
393 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest, 393 FRIEND_TEST_ALL_PREFIXES(RenderWidgetHostViewAuraTest,
394 DiscardDelegatedFrames); 394 DiscardDelegatedFrames);
395 395
396 class WindowObserver; 396 class WindowObserver;
397 friend class WindowObserver; 397 friend class WindowObserver;
398 #if defined(OS_WIN)
399 class TransientWindowObserver;
400 friend class TransientWindowObserver;
401 #endif
398 402
399 // Overridden from ImageTransportFactoryObserver: 403 // Overridden from ImageTransportFactoryObserver:
400 virtual void OnLostResources() OVERRIDE; 404 virtual void OnLostResources() OVERRIDE;
401 405
402 // Overridden from BrowserAccessibilityDelegate: 406 // Overridden from BrowserAccessibilityDelegate:
403 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE; 407 virtual void SetAccessibilityFocus(int acc_obj_id) OVERRIDE;
404 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE; 408 virtual void AccessibilityDoDefaultAction(int acc_obj_id) OVERRIDE;
405 virtual void AccessibilityScrollToMakeVisible( 409 virtual void AccessibilityScrollToMakeVisible(
406 int acc_obj_id, gfx::Rect subfocus) OVERRIDE; 410 int acc_obj_id, gfx::Rect subfocus) OVERRIDE;
407 virtual void AccessibilityScrollToPoint( 411 virtual void AccessibilityScrollToPoint(
(...skipping 137 matching lines...) Expand 10 before | Expand all | Expand 10 after
545 void SendSoftwareFrameAck(uint32 output_surface_id); 549 void SendSoftwareFrameAck(uint32 output_surface_id);
546 void SendReclaimSoftwareFrames(); 550 void SendReclaimSoftwareFrames();
547 void ReleaseSoftwareFrame(uint32 output_surface_id, 551 void ReleaseSoftwareFrame(uint32 output_surface_id,
548 unsigned software_frame_id); 552 unsigned software_frame_id);
549 553
550 void DidReceiveFrameFromRenderer(); 554 void DidReceiveFrameFromRenderer();
551 555
552 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager(); 556 BrowserAccessibilityManager* GetOrCreateBrowserAccessibilityManager();
553 557
554 #if defined(OS_WIN) 558 #if defined(OS_WIN)
559 // Sets the cutout rects from transient windows. These are rectangles that
560 // windowed NPAPI plugins shouldn't paint in. Overwrites any previous cutout
561 // rects.
562 void UpdateTransientRects(const std::vector<gfx::Rect>& rects);
563
555 // Updates the total list of cutout rects, which is the union of transient 564 // Updates the total list of cutout rects, which is the union of transient
556 // windows and constrained windows. 565 // windows and constrained windows.
557 void UpdateCutoutRects(); 566 void UpdateCutoutRects();
558 #endif 567 #endif
559 568
560 // The model object. 569 // The model object.
561 RenderWidgetHostImpl* host_; 570 RenderWidgetHostImpl* host_;
562 571
563 aura::Window* window_; 572 aura::Window* window_;
564 573
(...skipping 150 matching lines...) Expand 10 before | Expand all | Expand 10 after
715 NOT_VISIBLE, 724 NOT_VISIBLE,
716 }; 725 };
717 CursorVisibilityState cursor_visibility_state_in_renderer_; 726 CursorVisibilityState cursor_visibility_state_in_renderer_;
718 727
719 // An observer to notify that the paint content of the view has changed. The 728 // An observer to notify that the paint content of the view has changed. The
720 // observer is not owned by the view, and must remove itself as an oberver 729 // observer is not owned by the view, and must remove itself as an oberver
721 // when it is being destroyed. 730 // when it is being destroyed.
722 PaintObserver* paint_observer_; 731 PaintObserver* paint_observer_;
723 732
724 #if defined(OS_WIN) 733 #if defined(OS_WIN)
725 // The list of rectangles from constrained windows over this view. Windowed 734 scoped_ptr<TransientWindowObserver> transient_observer_;
726 // NPAPI plugins shouldn't draw over them. 735
736 // The list of rectangles from transient and constrained windows over this
737 // view. Windowed NPAPI plugins shouldn't draw over them.
738 std::vector<gfx::Rect> transient_rects_;
727 std::vector<gfx::Rect> constrained_rects_; 739 std::vector<gfx::Rect> constrained_rects_;
728 740
729 typedef std::map<HWND, WebPluginGeometry> PluginWindowMoves; 741 typedef std::map<HWND, WebPluginGeometry> PluginWindowMoves;
730 // Contains information about each windowed plugin's clip and cutout rects ( 742 // Contains information about each windowed plugin's clip and cutout rects (
731 // from the renderer). This is needed because when the transient windoiws 743 // from the renderer). This is needed because when the transient windoiws
732 // over this view changes, we need this information in order to create a new 744 // over this view changes, we need this information in order to create a new
733 // region for the HWND. 745 // region for the HWND.
734 PluginWindowMoves plugin_window_moves_; 746 PluginWindowMoves plugin_window_moves_;
735 #endif 747 #endif
736 748
(...skipping 19 matching lines...) Expand all
756 scoped_ptr<ReleasedFrameInfo> released_software_frame_; 768 scoped_ptr<ReleasedFrameInfo> released_software_frame_;
757 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_; 769 scoped_ptr<DelegatedFrameEvictor> delegated_frame_evictor_;
758 770
759 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_; 771 base::WeakPtrFactory<RenderWidgetHostViewAura> weak_ptr_factory_;
760 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura); 772 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewAura);
761 }; 773 };
762 774
763 } // namespace content 775 } // namespace content
764 776
765 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_ 777 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_AURA_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698