Chromium Code Reviews| Index: chrome/browser/ui/extensions/bookmark_app_browser_controller.h |
| diff --git a/chrome/browser/ui/extensions/bookmark_app_browser_controller.h b/chrome/browser/ui/extensions/bookmark_app_browser_controller.h |
| new file mode 100644 |
| index 0000000000000000000000000000000000000000..bc7325f5e3b36bc5e51628f580fb9acf42990fc5 |
| --- /dev/null |
| +++ b/chrome/browser/ui/extensions/bookmark_app_browser_controller.h |
| @@ -0,0 +1,40 @@ |
| +// Copyright 2015 The Chromium Authors. All rights reserved. |
| +// Use of this source code is governed by a BSD-style license that can be |
| +// found in the LICENSE file. |
| + |
| +#ifndef CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ |
| +#define CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ |
| + |
| +#include <string> |
| + |
| +#include "base/macros.h" |
| + |
| +class Browser; |
| +class Profile; |
| + |
| +namespace extensions { |
| + |
| +class BookmarkAppBrowserController { |
|
Lei Zhang
2015/03/30 22:17:54
This header file needs some comments.
benwells
2015/03/31 06:02:59
Done.
|
| + public: |
| + static bool IsForBookmarkApp(Browser* browser); |
| + |
| + explicit BookmarkAppBrowserController(Browser* browser); |
| + ~BookmarkAppBrowserController(); |
| + |
| + bool SupportsLocationBar(); |
| + bool ShouldShowLocationBar(); |
| + void UpdateLocationBarState(bool animate); |
| + |
| + bool should_use_web_app_frame() { return should_use_web_app_frame_; } |
| + |
| + private: |
| + Browser* browser_; |
| + const std::string extension_id_; |
| + const bool should_use_web_app_frame_; |
| + |
| + DISALLOW_COPY_AND_ASSIGN(BookmarkAppBrowserController); |
| +}; |
| + |
| +} // namespace extensions |
| + |
| +#endif // CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_ |