Chromium Code Reviews| OLD | NEW |
|---|---|
| (Empty) | |
| 1 // Copyright 2015 The Chromium Authors. All rights reserved. | |
| 2 // Use of this source code is governed by a BSD-style license that can be | |
| 3 // found in the LICENSE file. | |
| 4 | |
| 5 #ifndef CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ | |
| 6 #define CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ | |
| 7 | |
| 8 #include <string> | |
| 9 | |
| 10 #include "base/macros.h" | |
| 11 | |
| 12 class Browser; | |
| 13 class Profile; | |
| 14 | |
| 15 namespace extensions { | |
| 16 | |
| 17 class BookmarkAppBrowserController { | |
|
Lei Zhang
2015/03/30 22:17:54
This header file needs some comments.
benwells
2015/03/31 06:02:59
Done.
| |
| 18 public: | |
| 19 static bool IsForBookmarkApp(Browser* browser); | |
| 20 | |
| 21 explicit BookmarkAppBrowserController(Browser* browser); | |
| 22 ~BookmarkAppBrowserController(); | |
| 23 | |
| 24 bool SupportsLocationBar(); | |
| 25 bool ShouldShowLocationBar(); | |
| 26 void UpdateLocationBarState(bool animate); | |
| 27 | |
| 28 bool should_use_web_app_frame() { return should_use_web_app_frame_; } | |
| 29 | |
| 30 private: | |
| 31 Browser* browser_; | |
| 32 const std::string extension_id_; | |
| 33 const bool should_use_web_app_frame_; | |
| 34 | |
| 35 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBrowserController); | |
| 36 }; | |
| 37 | |
| 38 } // namespace extensions | |
| 39 | |
| 40 #endif // CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ | |
| OLD | NEW |