OLD | NEW |
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2010 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 CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 5 #ifndef CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 6 #define CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
7 | 7 |
8 #include <atlbase.h> | 8 #include <atlbase.h> |
9 #include <atlwin.h> | 9 #include <atlwin.h> |
10 #include <queue> | 10 #include <queue> |
11 #include <string> | 11 #include <string> |
12 #include <vector> | 12 #include <vector> |
13 | 13 |
14 #include "base/file_path.h" | 14 #include "base/file_path.h" |
15 #include "base/lock.h" | 15 #include "base/lock.h" |
16 #include "chrome/test/automation/automation_messages.h" | 16 #include "chrome/common/automation_messages.h" |
17 #include "ipc/ipc_message.h" | 17 #include "ipc/ipc_message.h" |
18 | 18 |
19 // A common interface supported by all the browser specific ChromeFrame | 19 // A common interface supported by all the browser specific ChromeFrame |
20 // implementations. | 20 // implementations. |
21 class ChromeFrameDelegate { | 21 class ChromeFrameDelegate { |
22 public: | 22 public: |
23 typedef HWND WindowType; | 23 typedef HWND WindowType; |
24 | 24 |
25 virtual WindowType GetWindow() const = 0; | 25 virtual WindowType GetWindow() const = 0; |
26 virtual void GetBounds(RECT* bounds) = 0; | 26 virtual void GetBounds(RECT* bounds) = 0; |
(...skipping 179 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
206 } | 206 } |
207 | 207 |
208 return false; | 208 return false; |
209 } | 209 } |
210 | 210 |
211 Lock lock_; | 211 Lock lock_; |
212 std::queue<Task*> pending_tasks_; | 212 std::queue<Task*> pending_tasks_; |
213 }; | 213 }; |
214 | 214 |
215 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ | 215 #endif // CHROME_FRAME_CHROME_FRAME_DELEGATE_H_ |
OLD | NEW |