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

Side by Side Diff: chrome/browser/chromeos/login/ui/login_web_dialog.h

Issue 812763003: Fix browser launch on the login screen. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Rebase, fix nits. Created 5 years, 10 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
« no previous file with comments | « no previous file | chrome/browser/chromeos/login/ui/login_web_dialog.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 9
10 #include "base/compiler_specific.h" 10 #include "base/compiler_specific.h"
(...skipping 63 matching lines...) Expand 10 before | Expand all | Expand 10 after
74 void GetMinimumDialogSize(gfx::Size* size) const override; 74 void GetMinimumDialogSize(gfx::Size* size) const override;
75 std::string GetDialogArgs() const override; 75 std::string GetDialogArgs() const override;
76 void OnDialogShown(content::WebUI* webui, 76 void OnDialogShown(content::WebUI* webui,
77 content::RenderViewHost* render_view_host) override; 77 content::RenderViewHost* render_view_host) override;
78 // NOTE: This function deletes this object at the end. 78 // NOTE: This function deletes this object at the end.
79 void OnDialogClosed(const std::string& json_retval) override; 79 void OnDialogClosed(const std::string& json_retval) override;
80 void OnCloseContents(content::WebContents* source, 80 void OnCloseContents(content::WebContents* source,
81 bool* out_close_dialog) override; 81 bool* out_close_dialog) override;
82 bool ShouldShowDialogTitle() const override; 82 bool ShouldShowDialogTitle() const override;
83 bool HandleContextMenu(const content::ContextMenuParams& params) override; 83 bool HandleContextMenu(const content::ContextMenuParams& params) override;
84 bool HandleOpenURLFromTab(content::WebContents* source,
85 const content::OpenURLParams& params,
86 content::WebContents** out_new_contents) override;
87 bool HandleShouldCreateWebContents() override;
84 88
85 // content::NotificationObserver implementation. 89 // content::NotificationObserver implementation.
86 void Observe(int type, 90 void Observe(int type,
87 const content::NotificationSource& source, 91 const content::NotificationSource& source,
88 const content::NotificationDetails& details) override; 92 const content::NotificationDetails& details) override;
89 93
90 private: 94 private:
91 content::BrowserContext* browser_context_; 95 content::BrowserContext* browser_context_;
92 gfx::NativeWindow parent_window_; 96 gfx::NativeWindow parent_window_;
93 // Notifications receiver. 97 // Notifications receiver.
94 Delegate* delegate_; 98 Delegate* delegate_;
95 99
96 base::string16 title_; 100 base::string16 title_;
97 GURL url_; 101 GURL url_;
98 content::NotificationRegistrar notification_registrar_; 102 content::NotificationRegistrar notification_registrar_;
99 bool is_open_; 103 bool is_open_;
100 104
101 // Dialog display size. 105 // Dialog display size.
102 int width_; 106 int width_;
103 int height_; 107 int height_;
104 108
105 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog); 109 DISALLOW_COPY_AND_ASSIGN(LoginWebDialog);
106 }; 110 };
107 111
108 } // namespace chromeos 112 } // namespace chromeos
109 113
110 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_UI_LOGIN_WEB_DIALOG_H_ 114 #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') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698