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

Side by Side Diff: chrome/browser/ui/extensions/bookmark_app_browser_controller.h

Issue 1164873003: Show origin for hosted apps that navigate away from their start origin. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: feedback for the stig Created 5 years, 6 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
OLDNEW
(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 to encapsulate logic to control the browser UI for bookmark apps.
18 class BookmarkAppBrowserController {
19 public:
20 // Indicates whether |browser| is a bookmark app browser.
21 static bool IsForBookmarkApp(Browser* browser);
22
23 explicit BookmarkAppBrowserController(Browser* browser);
24 ~BookmarkAppBrowserController();
25
26 // Whether the browser being controlled can ever show the location bar.
27 bool SupportsLocationBar();
28
29 // Whether the browser being controlled should be currently showing the
30 // location bar.
31 bool ShouldShowLocationBar();
32
33 // Updates the location bar visibility based on whether it should be
34 // currently visible or not. If |animate| is set, the change will be
35 // animated.
36 void UpdateLocationBarVisibility(bool animate);
37
38 // Whether the controlled browser should use the web app style frame.
39 bool should_use_web_app_frame() { return should_use_web_app_frame_; }
40
41 private:
42 Browser* browser_;
43 const std::string extension_id_;
44 const bool should_use_web_app_frame_;
45
46 DISALLOW_COPY_AND_ASSIGN(BookmarkAppBrowserController);
47 };
48
49 } // namespace extensions
50
51 #endif // CHROME_BROWSER_UI_EXTENSIONS_BOOKMARK_APP_BROWSER_CONTROLLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_browsertest.cc ('k') | chrome/browser/ui/extensions/bookmark_app_browser_controller.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698