| 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 <string> | 8 #include <string> |
| 9 | 9 |
| 10 #include "base/basictypes.h" | 10 #include "base/basictypes.h" |
| (...skipping 11 matching lines...) Expand all Loading... |
| 22 | 22 |
| 23 namespace gfx { | 23 namespace gfx { |
| 24 class Rect; | 24 class Rect; |
| 25 } | 25 } |
| 26 | 26 |
| 27 namespace extensions { | 27 namespace extensions { |
| 28 class Extension; | 28 class Extension; |
| 29 | 29 |
| 30 // This API needs to be implemented by any window that might be accessed | 30 // This API needs to be implemented by any window that might be accessed |
| 31 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). | 31 // through chrome.windows or chrome.tabs (e.g. browser windows and panels). |
| 32 // Subclasses must add/remove themselves from the WindowControllerList |
| 33 // upon construction/destruction. |
| 32 class WindowController { | 34 class WindowController { |
| 33 public: | 35 public: |
| 34 enum Reason { | 36 enum Reason { |
| 35 REASON_NONE, | 37 REASON_NONE, |
| 36 REASON_NOT_EDITABLE, | 38 REASON_NOT_EDITABLE, |
| 37 }; | 39 }; |
| 38 | 40 |
| 39 WindowController(BaseWindow* window, Profile* profile); | 41 WindowController(BaseWindow* window, Profile* profile); |
| 40 virtual ~WindowController(); | 42 virtual ~WindowController(); |
| 41 | 43 |
| (...skipping 35 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 77 private: | 79 private: |
| 78 BaseWindow* window_; | 80 BaseWindow* window_; |
| 79 Profile* profile_; | 81 Profile* profile_; |
| 80 | 82 |
| 81 DISALLOW_COPY_AND_ASSIGN(WindowController); | 83 DISALLOW_COPY_AND_ASSIGN(WindowController); |
| 82 }; | 84 }; |
| 83 | 85 |
| 84 } // namespace extensions | 86 } // namespace extensions |
| 85 | 87 |
| 86 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ | 88 #endif // CHROME_BROWSER_EXTENSIONS_WINDOW_CONTROLLER_H_ |
| OLD | NEW |