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

Unified Diff: chrome/browser/chromeos/login/ui/login_web_dialog.h

Issue 2871073002: cros: Bind hangup red button on remote controller to close web dialog (Closed)
Patch Set: feedback from xiyuan Created 3 years, 7 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/chromeos/login/ui/login_web_dialog.h
diff --git a/chrome/browser/chromeos/login/ui/login_web_dialog.h b/chrome/browser/chromeos/login/ui/login_web_dialog.h
index 2b4e3670d111b0db1b601711bc38944228b67abe..46cc4437fb1e31d44422e8001a08f2331de39022 100644
--- a/chrome/browser/chromeos/login/ui/login_web_dialog.h
+++ b/chrome/browser/chromeos/login/ui/login_web_dialog.h
@@ -75,21 +75,26 @@ class LoginWebDialog : public ui::WebDialogDelegate {
const content::OpenURLParams& params,
content::WebContents** out_new_contents) override;
bool HandleShouldCreateWebContents() override;
+ std::vector<ui::Accelerator> GetAccelerators() override;
+ bool AcceleratorPressed(const ui::Accelerator& accelerator) override;
private:
content::BrowserContext* const browser_context_;
gfx::NativeWindow parent_window_;
+ gfx::NativeWindow dialog_window_;
// Notifications receiver.
Delegate* const delegate_;
base::string16 title_;
const GURL url_;
- bool is_open_;
// Dialog display size.
int width_;
int height_;
+ // Stores accelerators that want to be registered to the web dialog view.
+ std::vector<ui::Accelerator> accelerators_;
+
DISALLOW_COPY_AND_ASSIGN(LoginWebDialog);
};

Powered by Google App Engine
This is Rietveld 408576698