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

Side by Side Diff: chrome/browser/ui/metro_pin_tab_helper.h

Issue 10801006: Allow secondary tiles to be unpinned. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Remove NULL check 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
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/metro_pin_tab_helper.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
(Empty)
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
3 // found in the LICENSE file.
4
5 #ifndef CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
6 #define CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
7
8 #include "content/public/browser/web_contents_observer.h"
9
10 // Per-tab class to help manage metro pinning.
11 class MetroPinTabHelper : public content::WebContentsObserver {
12 public:
13 explicit MetroPinTabHelper(content::WebContents* tab_contents);
14 virtual ~MetroPinTabHelper();
15
16 bool is_pinned() const { return is_pinned_; }
17
18 void TogglePinnedToStartScreen();
19
20 // content::WebContentsObserver overrides:
21 virtual void DidNavigateMainFrame(
22 const content::LoadCommittedDetails& details,
23 const content::FrameNavigateParams& params) OVERRIDE;
24
25 private:
26 // Queries the metro driver about the pinned state of the current URL.
27 void UpdatePinnedStateForCurrentURL();
28
29 // Whether the current URL is pinned to the metro start screen.
30 bool is_pinned_;
31
32 DISALLOW_COPY_AND_ASSIGN(MetroPinTabHelper);
33 };
34
35 #endif // CHROME_BROWSER_UI_METRO_PIN_TAB_HELPER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/browser_win.cc ('k') | chrome/browser/ui/metro_pin_tab_helper.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698