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

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: nits 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_web_dialog.cc » ('j') | no next file with comments »
Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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..e4b4fb5564ebf53ea50e04beb6f82a9e6c29c07d 100644
--- a/chrome/browser/chromeos/login/ui/login_web_dialog.h
+++ b/chrome/browser/chromeos/login/ui/login_web_dialog.h
@@ -53,6 +53,12 @@ class LoginWebDialog : public ui::WebDialogDelegate {
static content::WebContents* GetCurrentWebContents();
+ // Returns |dialog_window_| instance for test, can be NULL if dialog is not
+ // shown or closed.
+ gfx::NativeWindow get_dialog_window_for_test() const {
+ return dialog_window_;
+ }
+
protected:
// ui::WebDialogDelegate implementation.
ui::ModalType GetDialogModalType() const override;
@@ -75,16 +81,18 @@ 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_;
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_web_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698