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

Side by Side Diff: chrome/browser/ui/views/extensions/extension_keybinding_registry_views.h

Issue 628773002: replace OVERRIDE and FINAL with override and final in chrome/browser/ui/[t-v]* (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_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEWS_H _ 5 #ifndef CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEWS_H _
6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEWS_H _ 6 #define CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEWS_H _
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 20 matching lines...) Expand all
31 : public extensions::ExtensionKeybindingRegistry, 31 : public extensions::ExtensionKeybindingRegistry,
32 public ui::AcceleratorTarget { 32 public ui::AcceleratorTarget {
33 public: 33 public:
34 ExtensionKeybindingRegistryViews(Profile* profile, 34 ExtensionKeybindingRegistryViews(Profile* profile,
35 views::FocusManager* focus_manager, 35 views::FocusManager* focus_manager,
36 ExtensionFilter extension_filter, 36 ExtensionFilter extension_filter,
37 Delegate* delegate); 37 Delegate* delegate);
38 virtual ~ExtensionKeybindingRegistryViews(); 38 virtual ~ExtensionKeybindingRegistryViews();
39 39
40 // Overridden from ui::AcceleratorTarget. 40 // Overridden from ui::AcceleratorTarget.
41 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) OVERRIDE; 41 virtual bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
42 virtual bool CanHandleAccelerators() const OVERRIDE; 42 virtual bool CanHandleAccelerators() const override;
43 43
44 private: 44 private:
45 // Overridden from ExtensionKeybindingRegistry: 45 // Overridden from ExtensionKeybindingRegistry:
46 virtual void AddExtensionKeybinding( 46 virtual void AddExtensionKeybinding(
47 const extensions::Extension* extension, 47 const extensions::Extension* extension,
48 const std::string& command_name) OVERRIDE; 48 const std::string& command_name) override;
49 virtual void RemoveExtensionKeybindingImpl( 49 virtual void RemoveExtensionKeybindingImpl(
50 const ui::Accelerator& accelerator, 50 const ui::Accelerator& accelerator,
51 const std::string& command_name) OVERRIDE; 51 const std::string& command_name) override;
52 52
53 // Weak pointer to the our profile. Not owned by us. 53 // Weak pointer to the our profile. Not owned by us.
54 Profile* profile_; 54 Profile* profile_;
55 55
56 // Weak pointer back to the focus manager to use to register and unregister 56 // Weak pointer back to the focus manager to use to register and unregister
57 // accelerators with. Not owned by us. 57 // accelerators with. Not owned by us.
58 views::FocusManager* focus_manager_; 58 views::FocusManager* focus_manager_;
59 59
60 // The content notification registrar for listening to extension events. 60 // The content notification registrar for listening to extension events.
61 content::NotificationRegistrar registrar_; 61 content::NotificationRegistrar registrar_;
62 62
63 DISALLOW_COPY_AND_ASSIGN(ExtensionKeybindingRegistryViews); 63 DISALLOW_COPY_AND_ASSIGN(ExtensionKeybindingRegistryViews);
64 }; 64 };
65 65
66 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEW S_H_ 66 #endif // CHROME_BROWSER_UI_VIEWS_EXTENSIONS_EXTENSION_KEYBINDING_REGISTRY_VIEW S_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698