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

Side by Side Diff: chrome/browser/extensions/extension_keybinding_registry.h

Issue 624153002: replace OVERRIDE and FINAL with override and final in chrome/browser/extensions/ (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 2 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
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 CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_ 5 #ifndef CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_
6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_ 6 #define CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_
7 7
8 #include <list> 8 #include <list>
9 #include <map> 9 #include <map>
10 #include <string> 10 #include <string>
(...skipping 110 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 // Returns true if the |event_targets_| is empty; otherwise returns false. 121 // Returns true if the |event_targets_| is empty; otherwise returns false.
122 bool IsEventTargetsEmpty() const; 122 bool IsEventTargetsEmpty() const;
123 123
124 // Returns the BrowserContext for this registry. 124 // Returns the BrowserContext for this registry.
125 content::BrowserContext* browser_context() const { return browser_context_; } 125 content::BrowserContext* browser_context() const { return browser_context_; }
126 126
127 private: 127 private:
128 // Overridden from content::NotificationObserver: 128 // Overridden from content::NotificationObserver:
129 virtual void Observe(int type, 129 virtual void Observe(int type,
130 const content::NotificationSource& source, 130 const content::NotificationSource& source,
131 const content::NotificationDetails& details) OVERRIDE; 131 const content::NotificationDetails& details) override;
132 132
133 // ExtensionRegistryObserver implementation. 133 // ExtensionRegistryObserver implementation.
134 virtual void OnExtensionLoaded(content::BrowserContext* browser_context, 134 virtual void OnExtensionLoaded(content::BrowserContext* browser_context,
135 const Extension* extension) OVERRIDE; 135 const Extension* extension) override;
136 virtual void OnExtensionUnloaded( 136 virtual void OnExtensionUnloaded(
137 content::BrowserContext* browser_context, 137 content::BrowserContext* browser_context,
138 const Extension* extension, 138 const Extension* extension,
139 UnloadedExtensionInfo::Reason reason) OVERRIDE; 139 UnloadedExtensionInfo::Reason reason) override;
140 140
141 // Returns true if the |extension| matches our extension filter. 141 // Returns true if the |extension| matches our extension filter.
142 bool ExtensionMatchesFilter(const extensions::Extension* extension); 142 bool ExtensionMatchesFilter(const extensions::Extension* extension);
143 143
144 // Execute commands for |accelerator|. If |extension_id| is empty, execute all 144 // Execute commands for |accelerator|. If |extension_id| is empty, execute all
145 // commands bound to |accelerator|, otherwise execute only commands bound by 145 // commands bound to |accelerator|, otherwise execute only commands bound by
146 // the corresponding extension. Returns true if at least one command was 146 // the corresponding extension. Returns true if at least one command was
147 // executed. 147 // executed.
148 bool ExecuteCommands(const ui::Accelerator& accelerator, 148 bool ExecuteCommands(const ui::Accelerator& accelerator,
149 const std::string& extension_id); 149 const std::string& extension_id);
(...skipping 23 matching lines...) Expand all
173 // Listen to extension load, unloaded notifications. 173 // Listen to extension load, unloaded notifications.
174 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver> 174 ScopedObserver<ExtensionRegistry, ExtensionRegistryObserver>
175 extension_registry_observer_; 175 extension_registry_observer_;
176 176
177 DISALLOW_COPY_AND_ASSIGN(ExtensionKeybindingRegistry); 177 DISALLOW_COPY_AND_ASSIGN(ExtensionKeybindingRegistry);
178 }; 178 };
179 179
180 } // namespace extensions 180 } // namespace extensions
181 181
182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_ 182 #endif // CHROME_BROWSER_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_H_
OLDNEW
« no previous file with comments | « chrome/browser/extensions/extension_install_ui_browsertest.cc ('k') | chrome/browser/extensions/extension_management.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698