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 CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ | 5 #ifndef CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ |
6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ | 6 #define CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ |
7 | 7 |
8 #include <stdint.h> | 8 #include <stdint.h> |
9 | 9 |
10 #include <memory> | 10 #include <memory> |
11 #include <string> | 11 #include <string> |
12 | 12 |
13 #include "base/compiler_specific.h" | 13 #include "base/compiler_specific.h" |
14 #include "base/macros.h" | 14 #include "base/macros.h" |
15 #include "chrome/common/extensions/api/tabs.h" | 15 #include "chrome/common/extensions/api/tabs.h" |
16 #include "chrome/common/extensions/api/windows.h" | 16 #include "chrome/common/extensions/api/windows.h" |
17 | 17 |
18 class Browser; // TODO(stevenjb) eliminate this dependency. | 18 class Browser; // TODO(stevenjb) eliminate this dependency. |
19 class GURL; | 19 class GURL; |
20 class Profile; | 20 class Profile; |
21 class SessionID; | |
22 | 21 |
23 namespace base { | 22 namespace base { |
24 class DictionaryValue; | 23 class DictionaryValue; |
25 } | 24 } |
26 | 25 |
27 namespace gfx { | |
28 class Rect; | |
29 } | |
30 | |
31 namespace ui { | 26 namespace ui { |
32 class BaseWindow; | 27 class BaseWindow; |
33 } | 28 } |
34 | 29 |
35 namespace extensions { | 30 namespace extensions { |
36 class Extension; | 31 class Extension; |
37 | 32 |
38 // This API needs to be implemented by any window that might be accessed | 33 // This API needs to be implemented by any window that might be accessed |
39 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). | 34 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). |
40 // Subclasses must add/remove themselves from the WindowControllerList | 35 // Subclasses must add/remove themselves from the WindowControllerList |
(...skipping 72 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
113 private: | 108 private: |
114 ui::BaseWindow* window_; | 109 ui::BaseWindow* window_; |
115 Profile* profile_; | 110 Profile* profile_; |
116 | 111 |
117 DISALLOW_COPY_AND_ASSIGN(WindowController); | 112 DISALLOW_COPY_AND_ASSIGN(WindowController); |
118 }; | 113 }; |
119 | 114 |
120 } // namespace extensions | 115 } // namespace extensions |
121 | 116 |
122 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ | 117 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ |
OLD | NEW |