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

Unified Diff: chrome/browser/ui/webui/signin/inline_login_handler_impl.h

Issue 336583002: Disable context menu for constrained inline signin (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 6 years, 6 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
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/inline_login_handler_impl.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
Index: chrome/browser/ui/webui/signin/inline_login_handler_impl.h
diff --git a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
index cd7e2a159efeecf9c15975ca50cd6803fb43786f..68ba86e5fca9c6ddbd000947d840b69dfa7e5721 100644
--- a/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
+++ b/chrome/browser/ui/webui/signin/inline_login_handler_impl.h
@@ -11,13 +11,15 @@
#include "base/memory/weak_ptr.h"
#include "chrome/browser/ui/sync/one_click_signin_sync_starter.h"
#include "chrome/browser/ui/webui/signin/inline_login_handler.h"
+#include "content/public/browser/web_contents_delegate.h"
class GaiaAuthFetcher;
// Implementation for the inline login WebUI handler on desktop Chrome. Once
// CrOS migrates to the same webview approach as desktop Chrome, much of the
// code in this class should move to its base class |InlineLoginHandler|.
-class InlineLoginHandlerImpl : public InlineLoginHandler {
+class InlineLoginHandlerImpl : public InlineLoginHandler,
+ public content::WebContentsDelegate {
public:
InlineLoginHandlerImpl();
virtual ~InlineLoginHandlerImpl();
@@ -38,6 +40,10 @@ class InlineLoginHandlerImpl : public InlineLoginHandler {
virtual void SetExtraInitParams(base::DictionaryValue& params) OVERRIDE;
virtual void CompleteLogin(const base::ListValue* args) OVERRIDE;
+ // Overridden from content::WebContentsDelegate.
+ virtual bool HandleContextMenu(
xiyuan 2014/06/12 18:02:04 Move this to InlineLoginHandler to fix ChromeOS di
guohui 2014/06/12 20:15:30 Done.
+ const content::ContextMenuParams& params) OVERRIDE;
+
base::WeakPtrFactory<InlineLoginHandlerImpl> weak_factory_;
std::string email_;
std::string password_;
« no previous file with comments | « no previous file | chrome/browser/ui/webui/signin/inline_login_handler_impl.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698