| OLD | NEW |
| 1 | 1 |
| 2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. | 2 // Copyright (c) 2006-2008 The Chromium Authors. All rights reserved. |
| 3 // Use of this source code is governed by a BSD-style license that can be | 3 // Use of this source code is governed by a BSD-style license that can be |
| 4 // found in the LICENSE file. | 4 // found in the LICENSE file. |
| 5 | 5 |
| 6 #ifndef CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ | 6 #ifndef CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ |
| 7 #define CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ | 7 #define CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ |
| 8 | 8 |
| 9 #include "base/atomic_sequence_num.h" | 9 #include "base/atomic_sequence_num.h" |
| 10 #include "base/hash_tables.h" | 10 #include "base/hash_tables.h" |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 105 MessageLoop* ui_loop() { return ui_loop_; } | 105 MessageLoop* ui_loop() { return ui_loop_; } |
| 106 | 106 |
| 107 void CreateNewWindow(int opener_id, bool user_gesture, int* route_id, | 107 void CreateNewWindow(int opener_id, bool user_gesture, int* route_id, |
| 108 HANDLE* modal_dialog_event, HANDLE render_process); | 108 HANDLE* modal_dialog_event, HANDLE render_process); |
| 109 void CreateNewWidget(int opener_id, bool activatable, int* route_id); | 109 void CreateNewWidget(int opener_id, bool activatable, int* route_id); |
| 110 | 110 |
| 111 private: | 111 private: |
| 112 // A class used to proxy a paint message. PaintMsgProxy objects are created | 112 // A class used to proxy a paint message. PaintMsgProxy objects are created |
| 113 // on the IO thread and destroyed on the UI thread. | 113 // on the IO thread and destroyed on the UI thread. |
| 114 class PaintMsgProxy; | 114 class PaintMsgProxy; |
| 115 friend PaintMsgProxy; | 115 friend class PaintMsgProxy; |
| 116 | 116 |
| 117 // Map from render_widget_id to live PaintMsgProxy instance. | 117 // Map from render_widget_id to live PaintMsgProxy instance. |
| 118 typedef base::hash_map<int, PaintMsgProxy*> PaintMsgProxyMap; | 118 typedef base::hash_map<int, PaintMsgProxy*> PaintMsgProxyMap; |
| 119 | 119 |
| 120 // Called on the UI thread to discard a paint message. | 120 // Called on the UI thread to discard a paint message. |
| 121 void OnDiscardPaintMsg(PaintMsgProxy* proxy); | 121 void OnDiscardPaintMsg(PaintMsgProxy* proxy); |
| 122 | 122 |
| 123 // Called on the UI thread to dispatch a paint message if necessary. | 123 // Called on the UI thread to dispatch a paint message if necessary. |
| 124 void OnDispatchPaintMsg(PaintMsgProxy* proxy); | 124 void OnDispatchPaintMsg(PaintMsgProxy* proxy); |
| 125 | 125 |
| (...skipping 24 matching lines...) Expand all Loading... |
| 150 // The next routing id to use. | 150 // The next routing id to use. |
| 151 base::AtomicSequenceNumber next_routing_id_; | 151 base::AtomicSequenceNumber next_routing_id_; |
| 152 | 152 |
| 153 // Whether popup blocking is enabled or not. | 153 // Whether popup blocking is enabled or not. |
| 154 bool block_popups_; | 154 bool block_popups_; |
| 155 | 155 |
| 156 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHelper); | 156 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHelper); |
| 157 }; | 157 }; |
| 158 | 158 |
| 159 #endif // CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ | 159 #endif // CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ |
| OLD | NEW |