OLD | NEW |
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 385 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
396 static void DetachPluginWindowsCallback(HWND window); | 396 static void DetachPluginWindowsCallback(HWND window); |
397 #endif | 397 #endif |
398 | 398 |
399 // Add and remove observers for lifetime event notifications. The order in | 399 // Add and remove observers for lifetime event notifications. The order in |
400 // which notifications are sent to observers is undefined. Clients must be | 400 // which notifications are sent to observers is undefined. Clients must be |
401 // sure to remove the observer before they go away. | 401 // sure to remove the observer before they go away. |
402 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 402 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
403 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 403 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
404 | 404 |
405 // Exposed for testing. | 405 // Exposed for testing. |
| 406 virtual bool IsChildFrameForTesting() const; |
406 virtual cc::SurfaceId SurfaceIdForTesting() const; | 407 virtual cc::SurfaceId SurfaceIdForTesting() const; |
407 | 408 |
408 protected: | 409 protected: |
409 // Interface class only, do not construct. | 410 // Interface class only, do not construct. |
410 RenderWidgetHostViewBase(); | 411 RenderWidgetHostViewBase(); |
411 | 412 |
412 void NotifyObserversAboutShutdown(); | 413 void NotifyObserversAboutShutdown(); |
413 | 414 |
414 #if defined(OS_WIN) | 415 #if defined(OS_WIN) |
415 // Shared implementation of MovePluginWindows for use by win and aura/wina. | 416 // Shared implementation of MovePluginWindows for use by win and aura/wina. |
(...skipping 60 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
476 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 477 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
477 | 478 |
478 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 479 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
479 | 480 |
480 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 481 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
481 }; | 482 }; |
482 | 483 |
483 } // namespace content | 484 } // namespace content |
484 | 485 |
485 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 486 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |