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