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 367 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
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 // Add and remove observers for lifetime event notifications. The order in | 381 // Add and remove observers for lifetime event notifications. The order in |
382 // which notifications are sent to observers is undefined. Clients must be | 382 // which notifications are sent to observers is undefined. Clients must be |
383 // sure to remove the observer before they go away. | 383 // sure to remove the observer before they go away. |
384 void AddObserver(RenderWidgetHostViewBaseObserver* observer); | 384 void AddObserver(RenderWidgetHostViewBaseObserver* observer); |
385 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); | 385 void RemoveObserver(RenderWidgetHostViewBaseObserver* observer); |
386 | 386 |
387 // Exposed for testing. | 387 // Exposed for testing. |
| 388 virtual bool IsChildFrameForTesting() const; |
388 virtual cc::SurfaceId SurfaceIdForTesting() const; | 389 virtual cc::SurfaceId SurfaceIdForTesting() const; |
389 | 390 |
390 protected: | 391 protected: |
391 // Interface class only, do not construct. | 392 // Interface class only, do not construct. |
392 RenderWidgetHostViewBase(); | 393 RenderWidgetHostViewBase(); |
393 | 394 |
394 void NotifyObserversAboutShutdown(); | 395 void NotifyObserversAboutShutdown(); |
395 | 396 |
396 // Whether this view is a popup and what kind of popup it is (select, | 397 // Whether this view is a popup and what kind of popup it is (select, |
397 // autofill...). | 398 // autofill...). |
(...skipping 45 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
443 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; | 444 base::ObserverList<RenderWidgetHostViewBaseObserver> observers_; |
444 | 445 |
445 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; | 446 base::WeakPtrFactory<RenderWidgetHostViewBase> weak_factory_; |
446 | 447 |
447 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); | 448 DISALLOW_COPY_AND_ASSIGN(RenderWidgetHostViewBase); |
448 }; | 449 }; |
449 | 450 |
450 } // namespace content | 451 } // namespace content |
451 | 452 |
452 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ | 453 #endif // CONTENT_BROWSER_RENDERER_HOST_RENDER_WIDGET_HOST_VIEW_BASE_H_ |
OLD | NEW |