Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: chrome/browser/extensions/window_controller.h

Issue 10777004: Support chrome.windows extension API events for browserless Panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Synced Created 8 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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
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
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_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_service.cc ('k') | chrome/browser/extensions/window_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698