| 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 95 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 106 | 106 |
| 107 // IO THREAD ONLY ----------------------------------------------------------- | 107 // IO THREAD ONLY ----------------------------------------------------------- |
| 108 | 108 |
| 109 // Called on the IO thread when a PaintRect message is received. | 109 // Called on the IO thread when a PaintRect message is received. |
| 110 void DidReceivePaintMsg(const IPC::Message& msg); | 110 void DidReceivePaintMsg(const IPC::Message& msg); |
| 111 | 111 |
| 112 MessageLoop* ui_loop() { return ui_loop_; } | 112 MessageLoop* ui_loop() { return ui_loop_; } |
| 113 | 113 |
| 114 void CreateNewWindow(int opener_id, bool user_gesture, int* route_id, | 114 void CreateNewWindow(int opener_id, bool user_gesture, int* route_id, |
| 115 HANDLE* modal_dialog_event, HANDLE render_process); | 115 HANDLE* modal_dialog_event, HANDLE render_process); |
| 116 void CreateNewWidget(int opener_id, bool focus_on_show, int* route_id); | 116 void CreateNewWidget(int opener_id, bool activatable, int* route_id); |
| 117 | 117 |
| 118 private: | 118 private: |
| 119 // A class used to proxy a paint message. PaintMsgProxy objects are created | 119 // A class used to proxy a paint message. PaintMsgProxy objects are created |
| 120 // on the IO thread and destroyed on the UI thread. | 120 // on the IO thread and destroyed on the UI thread. |
| 121 class PaintMsgProxy; | 121 class PaintMsgProxy; |
| 122 friend PaintMsgProxy; | 122 friend PaintMsgProxy; |
| 123 | 123 |
| 124 // Map from render_widget_id to live PaintMsgProxy instance. | 124 // Map from render_widget_id to live PaintMsgProxy instance. |
| 125 typedef base::hash_map<int, PaintMsgProxy*> PaintMsgProxyMap; | 125 typedef base::hash_map<int, PaintMsgProxy*> PaintMsgProxyMap; |
| 126 | 126 |
| (...skipping 30 matching lines...) Expand all Loading... |
| 157 // The next routing id to use. | 157 // The next routing id to use. |
| 158 base::AtomicSequenceNumber next_routing_id_; | 158 base::AtomicSequenceNumber next_routing_id_; |
| 159 | 159 |
| 160 // Whether popup blocking is enabled or not. | 160 // Whether popup blocking is enabled or not. |
| 161 bool block_popups_; | 161 bool block_popups_; |
| 162 | 162 |
| 163 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHelper); | 163 DISALLOW_EVIL_CONSTRUCTORS(RenderWidgetHelper); |
| 164 }; | 164 }; |
| 165 | 165 |
| 166 #endif // CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ | 166 #endif // CHROME_BROWSER_RENDER_WIDGET_HELPER_H__ |
| OLD | NEW |