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

Unified Diff: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h

Issue 1737413002: Modified the behavior of "Hide Toolbar in Full Screen" (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Feb -> March Created 4 years, 10 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
diff --git a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
index 1cd03e32dae3db5fab2e7a9fe650e72b25505681..b3c2ab6bf94f3d232144feb2634a743c4c604351 100644
--- a/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
+++ b/chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.h
@@ -15,6 +15,7 @@
#include "base/memory/scoped_ptr.h"
#include "chrome/browser/ui/exclusive_access/exclusive_access_context.h"
#include "chrome/browser/ui/views/exclusive_access_bubble_views_context.h"
+#include "components/prefs/pref_change_registrar.h"
#include "ui/base/accelerators/accelerator.h"
class Browser;
@@ -55,7 +56,7 @@ class ExclusiveAccessController : public ExclusiveAccessContext,
bool IsFullscreen() const override;
bool SupportsFullscreenWithToolbar() const override;
void UpdateFullscreenWithToolbar(bool with_toolbar) override;
- void ToggleFullscreenToolbar() override;
+ void UpdateFullscreenToolbar() override;
bool IsFullscreenWithToolbar() const override;
void EnterFullscreen(const GURL& url,
ExclusiveAccessBubbleType type,
@@ -98,6 +99,9 @@ class ExclusiveAccessController : public ExclusiveAccessContext,
scoped_ptr<ExclusiveAccessBubbleViews> views_bubble_;
base::scoped_nsobject<ExclusiveAccessBubbleWindowController> cocoa_bubble_;
+ // Used to keep track of the kShowFullscreenToolbar preference.
+ PrefChangeRegistrar pref_registrar_;
+
DISALLOW_COPY_AND_ASSIGN(ExclusiveAccessController);
};
« no previous file with comments | « chrome/browser/ui/browser_ui_prefs.cc ('k') | chrome/browser/ui/cocoa/browser/exclusive_access_controller_views.mm » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698