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

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

Issue 1825253002: Revert of Remove a bunch of NPAPI quirks and related support code (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@remove_windowed_plugins
Patch Set: 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_BASE_H_ 5 #ifndef CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 6 #define CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
7 7
8 #include <stddef.h> 8 #include <stddef.h>
9 #include <stdint.h> 9 #include <stdint.h>
10 10
(...skipping 363 matching lines...) Expand 10 before | Expand all | Expand 10 after
374 #endif 374 #endif
375 375
376 // Updates the range of the marked text in an IME composition. 376 // Updates the range of the marked text in an IME composition.
377 virtual void ImeCompositionRangeChanged( 377 virtual void ImeCompositionRangeChanged(
378 const gfx::Range& range, 378 const gfx::Range& range,
379 const std::vector<gfx::Rect>& character_bounds) = 0; 379 const std::vector<gfx::Rect>& character_bounds) = 0;
380 380
381 #if defined(OS_WIN) 381 #if defined(OS_WIN)
382 virtual void SetParentNativeViewAccessible( 382 virtual void SetParentNativeViewAccessible(
383 gfx::NativeViewAccessible accessible_parent) = 0; 383 gfx::NativeViewAccessible accessible_parent) = 0;
384
385 // Returns an HWND that's given as the parent window for windowless Flash to
386 // workaround crbug.com/301548.
387 virtual gfx::NativeViewId GetParentForWindowlessPlugin() const = 0;
384 #endif 388 #endif
385 389
386 // Add and remove observers for lifetime event notifications. The order in 390 // Add and remove observers for lifetime event notifications. The order in
387 // which notifications are sent to observers is undefined. Clients must be 391 // which notifications are sent to observers is undefined. Clients must be
388 // sure to remove the observer before they go away. 392 // sure to remove the observer before they go away.
389 void AddObserver(RenderWidgetHostViewBaseObserver* observer); 393 void AddObserver(RenderWidgetHostViewBaseObserver* observer);
390 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); 394 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer);
391 395
392 // Exposed for testing. 396 // Exposed for testing.
393 virtual cc::SurfaceId SurfaceIdForTesting() const; 397 virtual cc::SurfaceId SurfaceIdForTesting() const;
(...skipping 54 matching lines...) Expand 10 before | Expand all | Expand 10 after
448 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; 452 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_;
449 453
450 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; 454 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_;
451 455
452 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); 456 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase);
453 }; 457 };
454 458
455 } // namespace content 459 } // namespace content
456 460
457 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ 461 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698