summaryrefslogtreecommitdiffstats
path: root/chrome/browser/chromeos/status/accessibility_menu_button.h
diff options
context:
space:
mode:
Diffstat (limited to 'chrome/browser/chromeos/status/accessibility_menu_button.h')
-rw-r--r--chrome/browser/chromeos/status/accessibility_menu_button.h65
1 files changed, 0 insertions, 65 deletions
diff --git a/chrome/browser/chromeos/status/accessibility_menu_button.h b/chrome/browser/chromeos/status/accessibility_menu_button.h
deleted file mode 100644
index 54f19eb..0000000
--- a/chrome/browser/chromeos/status/accessibility_menu_button.h
+++ /dev/null
@@ -1,65 +0,0 @@
-// Copyright (c) 2012 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_CHROMEOS_STATUS_ACCESSIBILITY_MENU_BUTTON_H_
-#define CHROME_BROWSER_CHROMEOS_STATUS_ACCESSIBILITY_MENU_BUTTON_H_
-#pragma once
-
-#include "chrome/browser/chromeos/status/status_area_button.h"
-#include "chrome/browser/prefs/pref_member.h"
-#include "content/public/browser/notification_observer.h"
-#include "ui/views/controls/button/menu_button_listener.h"
-#include "ui/views/controls/menu/menu_delegate.h"
-
-namespace views {
-class MenuRunner;
-}
-
-namespace chromeos {
-
-class StatusAreaBubbleController;
-
-// A class for the button in the status area which alerts the user when
-// accessibility features are enabled.
-class AccessibilityMenuButton : public StatusAreaButton,
- public views::MenuButtonListener,
- public views::MenuDelegate,
- public content::NotificationObserver {
- public:
- explicit AccessibilityMenuButton(StatusAreaButton::Delegate* delegate);
- virtual ~AccessibilityMenuButton();
-
- // Overridden from views::MenuButtonListener:
- virtual void OnMenuButtonClicked(views::View* source,
- const gfx::Point& point) OVERRIDE;
-
- // Overridden from views::MenuDelegate:
- virtual void ExecuteCommand(int id) OVERRIDE;
-
- // content::NotificationObserver implementation
- virtual void Observe(int type,
- const content::NotificationSource& source,
- const content::NotificationDetails& details) OVERRIDE;
-
- private:
- // Updates the state along with the preferences.
- void Update();
-
- // Prepares menu before showing it.
- void PrepareMenu();
-
- // An object synced to the preference, representing if accessibility feature
- // is enabled or not.
- BooleanPrefMember accessibility_enabled_;
- // An object to show menu.
- scoped_ptr<views::MenuRunner> menu_runner_;
- // The currently showing bubble controller.
- scoped_ptr<StatusAreaBubbleController> bubble_controller_;
-
- DISALLOW_COPY_AND_ASSIGN(AccessibilityMenuButton);
-};
-
-} // namespace chromeos
-
-#endif // CHROME_BROWSER_CHROMEOS_STATUS_ACCESSIBILITY_MENU_BUTTON_H_