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

Side by Side Diff: chrome/browser/ui/views/aura/multiple_window_indicator_button.h

Issue 9570044: Rename chrome/browser/ui/views/{aura => ash}/ (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Rebase Created 8 years, 9 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
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_VIEWS_AURA_MULTIPLE_WINDOW_INDICATOR_BUTTON_H_
6 #define CHROME_BROWSER_UI_VIEWS_AURA_MULTIPLE_WINDOW_INDICATOR_BUTTON_H_
7 #pragma once
8
9 #include "base/compiler_specific.h"
10 #include "chrome/browser/chromeos/status/status_area_button.h"
11 #include "chrome/browser/ui/browser_list.h"
12
13 // A multiple window indicator that shows up on the right side of the status
14 // area when you have more than one tabbed browser window open.
15 class MultipleWindowIndicatorButton : public StatusAreaButton,
16 public BrowserList::Observer {
17 public:
18 explicit MultipleWindowIndicatorButton(StatusAreaButton::Delegate* delegate);
19 virtual ~MultipleWindowIndicatorButton();
20
21 private:
22 // BrowserList::Observer implementation:
23 virtual void OnBrowserAdded(const Browser* browser) OVERRIDE;
24 virtual void OnBrowserRemoved(const Browser* browser) OVERRIDE;
25
26 // Update this button's visibility based on number of tabbed browser windows.
27 // That is, show the button when there are more than one tabbed browser and
28 // hide otherwise.
29 void UpdateVisiblity();
30
31 DISALLOW_COPY_AND_ASSIGN(MultipleWindowIndicatorButton);
32 };
33
34 #endif // CHROME_BROWSER_UI_VIEWS_AURA_MULTIPLE_WINDOW_INDICATOR_BUTTON_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698