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

Side by Side Diff: chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h

Issue 1857213004: Refactor of LauncherContextMenu. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Nits update Created 4 years, 8 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 2016 The Chromium Authors. All rights reserved. 1 // Copyright 2016 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_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ 5 #ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
6 #define CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_ 6 #define CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
7 7
8 #include "base/macros.h" 8 #include "base/macros.h"
9 #include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h" 9 #include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
10 10
11 namespace settings { 11 class ChromeLauncherController;
12 12
13 class NativeCertificatesHandler : public SettingsPageUIHandler { 13 namespace ash {
14 class Shelf;
15 struct ShelfItem;
16 }
17
18 // Class for context menu which is shown when right click on desktop shell.
19 class DesktopShellLauncherContextMenu : public LauncherContextMenu {
14 public: 20 public:
15 NativeCertificatesHandler(); 21 DesktopShellLauncherContextMenu(ChromeLauncherController* controller,
16 ~NativeCertificatesHandler() override; 22 const ash::ShelfItem* item,
17 23 ash::Shelf* shelf);
18 // SettingsPageUIHandler implementation. 24 ~DesktopShellLauncherContextMenu() override;
19 void RegisterMessages() override;
20
21 // Callback for the "showManageSSLCertificates" message. This will invoke
22 // an appropriate certificate management action based on the platform.
23 void HandleShowManageSSLCertificates(const base::ListValue* args);
24 25
25 private: 26 private:
26 DISALLOW_COPY_AND_ASSIGN(NativeCertificatesHandler); 27 void Init();
28
29 DISALLOW_COPY_AND_ASSIGN(DesktopShellLauncherContextMenu);
27 }; 30 };
28 31
29 } // namespace settings 32 #endif // CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
30
31 #endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/ash/chrome_shell_delegate.cc ('k') | chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698