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

Side by Side 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: for discussion 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 unified diff | Download patch
OLDNEW
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
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 bool AdditionalAccelerator(const ui::Accelerator& accelerator) const override;
78 79
79 private: 80 private:
80 content::BrowserContext* const browser_context_; 81 content::BrowserContext* const browser_context_;
81 gfx::NativeWindow parent_window_; 82 gfx::NativeWindow parent_window_;
82 // Notifications receiver. 83 // Notifications receiver.
83 Delegate* const delegate_; 84 Delegate* const delegate_;
84 85
85 base::string16 title_; 86 base::string16 title_;
86 const GURL url_; 87 const GURL url_;
87 bool is_open_; 88 bool is_open_;
88 89
89 // Dialog display size. 90 // Dialog display size.
90 int width_; 91 int width_;
91 int height_; 92 int height_;
92 93
93 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); 94 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog);
94 }; 95 };
95 96
96 } // namespace chromeos 97 } // namespace chromeos
97 98
98 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ 99 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_web_dialog.cc » ('j') | ui/web_dialogs/web_dialog_delegate.h » ('J')

Powered by Google App Engine
This is Rietveld 408576698