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

Unified 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h
diff --git a/chrome/browser/ui/webui/settings/native_certificates_handler.h b/chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h
similarity index 26%
copy from chrome/browser/ui/webui/settings/native_certificates_handler.h
copy to chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h
index df94e57913f02b5306bcf46082d71491046218a1..f6b6e8566b7982f7ad4644f6b4ea1bf1500eed91 100644
--- a/chrome/browser/ui/webui/settings/native_certificates_handler.h
+++ b/chrome/browser/ui/ash/launcher/desktop_shell_launcher_context_menu.h
@@ -2,30 +2,31 @@
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.
-#ifndef CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_
-#define CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_
+#ifndef CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
+#define CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
#include "base/macros.h"
-#include "chrome/browser/ui/webui/settings/settings_page_ui_handler.h"
+#include "chrome/browser/ui/ash/launcher/launcher_context_menu.h"
-namespace settings {
+class ChromeLauncherController;
-class NativeCertificatesHandler : public SettingsPageUIHandler {
- public:
- NativeCertificatesHandler();
- ~NativeCertificatesHandler() override;
-
- // SettingsPageUIHandler implementation.
- void RegisterMessages() override;
+namespace ash {
+class Shelf;
+struct ShelfItem;
+}
- // Callback for the "showManageSSLCertificates" message. This will invoke
- // an appropriate certificate management action based on the platform.
- void HandleShowManageSSLCertificates(const base::ListValue* args);
+// Class for context menu which is shown when right click on desktop shell.
+class DesktopShellLauncherContextMenu : public LauncherContextMenu {
+ public:
+ DesktopShellLauncherContextMenu(ChromeLauncherController* controller,
+ const ash::ShelfItem* item,
+ ash::Shelf* shelf);
+ ~DesktopShellLauncherContextMenu() override;
private:
- DISALLOW_COPY_AND_ASSIGN(NativeCertificatesHandler);
-};
+ void Init();
-} // namespace settings
+ DISALLOW_COPY_AND_ASSIGN(DesktopShellLauncherContextMenu);
+};
-#endif // CHROME_BROWSER_UI_WEBUI_SETTINGS_NATIVE_CERTIFICATES_HANDLER_H_
+#endif // CHROME_BROWSER_UI_ASH_LAUNCHER_DESKTOP_SHELL_LAUNCHER_CONTEXT_MENU_H_
« 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