| OLD | NEW |
| 1 // Copyright 2014 The Chromium Authors. All rights reserved. | 1 // Copyright 2014 The Chromium Authors. All rights reserved. |
| 2 // Use of this source code is governed by a BSD-style license that can be | 2 // Use of this source code is governed by a BSD-style license that can be |
| 3 // found in the LICENSE file. | 3 // found in the LICENSE file. |
| 4 | 4 |
| 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 57 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 68 // NOTE: This function deletes this object at the end. | 68 // NOTE: This function deletes this object at the end. |
| 69 void OnDialogClosed(const std::string& json_retval) override; | 69 void OnDialogClosed(const std::string& json_retval) override; |
| 70 void OnCloseContents(content::WebContents* source, | 70 void OnCloseContents(content::WebContents* source, |
| 71 bool* out_close_dialog) override; | 71 bool* out_close_dialog) override; |
| 72 bool ShouldShowDialogTitle() const override; | 72 bool ShouldShowDialogTitle() const override; |
| 73 bool HandleContextMenu(const content::ContextMenuParams& params) override; | 73 bool HandleContextMenu(const content::ContextMenuParams& params) override; |
| 74 bool HandleOpenURLFromTab(content::WebContents* source, | 74 bool HandleOpenURLFromTab(content::WebContents* source, |
| 75 const content::OpenURLParams& params, | 75 const content::OpenURLParams& params, |
| 76 content::WebContents** out_new_contents) override; | 76 content::WebContents** out_new_contents) override; |
| 77 bool HandleShouldCreateWebContents() override; | 77 bool HandleShouldCreateWebContents() override; |
| 78 std::vector<ui::Accelerator> GetAccelerators() override; |
| 79 bool AcceleratorPressed(const ui::Accelerator& accelerator) override; |
| 78 | 80 |
| 79 private: | 81 private: |
| 80 content::BrowserContext* const browser_context_; | 82 content::BrowserContext* const browser_context_; |
| 81 gfx::NativeWindow parent_window_; | 83 gfx::NativeWindow parent_window_; |
| 84 gfx::NativeWindow dialog_window_; |
| 82 // Notifications receiver. | 85 // Notifications receiver. |
| 83 Delegate* const delegate_; | 86 Delegate* const delegate_; |
| 84 | 87 |
| 85 base::string16 title_; | 88 base::string16 title_; |
| 86 const GURL url_; | 89 const GURL url_; |
| 87 bool is_open_; | |
| 88 | 90 |
| 89 // Dialog display size. | 91 // Dialog display size. |
| 90 int width_; | 92 int width_; |
| 91 int height_; | 93 int height_; |
| 92 | 94 |
| 95 // Stores accelerators that want to be registered to the web dialog view. |
| 96 std::vector<ui::Accelerator> accelerators_; |
| 97 |
| 93 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); | 98 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); |
| 94 }; | 99 }; |
| 95 | 100 |
| 96 } // namespace chromeos | 101 } // namespace chromeos |
| 97 | 102 |
| 98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ | 103 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ |
| OLD | NEW |