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

Side by Side Diff: content/public/browser/browser_accessibility_state.h

Issue 10696166: Remove #pragma once from content (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: 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
OLDNEW
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. 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 2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file. 3 // found in the LICENSE file.
4 4
5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 5 #ifndef CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 6 #define CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
7 #pragma once
8 7
9 #include "content/common/content_export.h" 8 #include "content/common/content_export.h"
10 9
11 // The BrowserAccessibilityState class is used to determine if the browser 10 // The BrowserAccessibilityState class is used to determine if the browser
12 // should be customized for users with assistive technology, such as screen 11 // should be customized for users with assistive technology, such as screen
13 // readers. 12 // readers.
14 class CONTENT_EXPORT BrowserAccessibilityState { 13 class CONTENT_EXPORT BrowserAccessibilityState {
15 public: 14 public:
16 virtual ~BrowserAccessibilityState() { } 15 virtual ~BrowserAccessibilityState() { }
17 16
18 // Returns the singleton instance. 17 // Returns the singleton instance.
19 static BrowserAccessibilityState* GetInstance(); 18 static BrowserAccessibilityState* GetInstance();
20 19
21 // Called when accessibility is enabled manually (via command-line flag). 20 // Called when accessibility is enabled manually (via command-line flag).
22 virtual void OnAccessibilityEnabledManually() = 0; 21 virtual void OnAccessibilityEnabledManually() = 0;
23 22
24 // Called when screen reader client is detected. 23 // Called when screen reader client is detected.
25 virtual void OnScreenReaderDetected() = 0; 24 virtual void OnScreenReaderDetected() = 0;
26 25
27 // Returns true if the browser should be customized for accessibility. 26 // Returns true if the browser should be customized for accessibility.
28 virtual bool IsAccessibleBrowser() = 0; 27 virtual bool IsAccessibleBrowser() = 0;
29 }; 28 };
30 29
31 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_ 30 #endif // CONTENT_PUBLIC_BROWSER_BROWSER_ACCESSIBILITY_STATE_H_
OLDNEW
« no previous file with comments | « content/public/browser/android/content_view.h ('k') | content/public/browser/browser_child_process_host.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698