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_; |