| 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_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 5 #ifndef CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
| 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 6 #define CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
| 7 #pragma once | 7 #pragma once |
| 8 | 8 |
| 9 #include <map> | 9 #include <map> |
| 10 | 10 |
| (...skipping 10 matching lines...) Expand all Loading... |
| 21 | 21 |
| 22 namespace content { | 22 namespace content { |
| 23 class RenderWidgetHostView; | 23 class RenderWidgetHostView; |
| 24 class WebContents; | 24 class WebContents; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace gfx { | 27 namespace gfx { |
| 28 class Rect; | 28 class Rect; |
| 29 } | 29 } |
| 30 | 30 |
| 31 // TODO(avi): Once all the TabContentsViews implementations are in content (I'm | 31 // TODO(avi): Once all the WebContentsViews implementations are in content (I'm |
| 32 // looking at you, TabContentsViewViews...) then change the parameters to take | 32 // looking at you, TabContentsViewViews...) then change the parameters to take |
| 33 // WebContentsImpl rather than WebContents. | 33 // WebContentsImpl rather than WebContents. |
| 34 | 34 |
| 35 // Provides helper methods that provide common implementations of some | 35 // Provides helper methods that provide common implementations of some |
| 36 // WebContentsView methods. | 36 // WebContentsView methods. |
| 37 class CONTENT_EXPORT WebContentsViewHelper | 37 class CONTENT_EXPORT WebContentsViewHelper |
| 38 : public content::NotificationObserver { | 38 : public content::NotificationObserver { |
| 39 public: | 39 public: |
| 40 WebContentsViewHelper(); | 40 WebContentsViewHelper(); |
| 41 virtual ~WebContentsViewHelper(); | 41 virtual ~WebContentsViewHelper(); |
| (...skipping 53 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 95 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews; | 95 typedef std::map<int, content::RenderWidgetHostView*> PendingWidgetViews; |
| 96 PendingWidgetViews pending_widget_views_; | 96 PendingWidgetViews pending_widget_views_; |
| 97 | 97 |
| 98 // Registers and unregisters us for notifications. | 98 // Registers and unregisters us for notifications. |
| 99 content::NotificationRegistrar registrar_; | 99 content::NotificationRegistrar registrar_; |
| 100 | 100 |
| 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewHelper); | 101 DISALLOW_COPY_AND_ASSIGN(WebContentsViewHelper); |
| 102 }; | 102 }; |
| 103 | 103 |
| 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ | 104 #endif // CONTENT_BROWSER_WEB_CONTENTS_WEB_CONTENTS_VIEW_HELPER_H_ |
| OLD | NEW |