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

Side by Side Diff: chrome/browser/chromeos/login/login_html_dialog.h

Issue 7461136: Convert HtmlDialogUIDelegate::GetDialogTitle() to string16. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: more fixes Created 9 years, 4 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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_LOGIN_HTML_DIALOG_H_ 5 #ifndef CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_
6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ 6 #define CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 10
(...skipping 38 matching lines...) Expand 10 before | Expand all | Expand 10 after
49 // Overrides default width/height for dialog. 49 // Overrides default width/height for dialog.
50 void SetDialogSize(int width, int height); 50 void SetDialogSize(int width, int height);
51 51
52 void set_url(const GURL& url) { url_ = url; } 52 void set_url(const GURL& url) { url_ = url; }
53 53
54 bool is_open() const { return is_open_; } 54 bool is_open() const { return is_open_; }
55 55
56 protected: 56 protected:
57 // HtmlDialogUIDelegate implementation. 57 // HtmlDialogUIDelegate implementation.
58 virtual bool IsDialogModal() const OVERRIDE; 58 virtual bool IsDialogModal() const OVERRIDE;
59 virtual std::wstring GetDialogTitle() const OVERRIDE; 59 virtual string16 GetDialogTitle() const OVERRIDE;
60 virtual GURL GetDialogContentURL() const OVERRIDE; 60 virtual GURL GetDialogContentURL() const OVERRIDE;
61 virtual void GetWebUIMessageHandlers( 61 virtual void GetWebUIMessageHandlers(
62 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; 62 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE;
63 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 63 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
64 virtual std::string GetDialogArgs() const OVERRIDE; 64 virtual std::string GetDialogArgs() const OVERRIDE;
65 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 65 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
66 virtual void OnCloseContents( 66 virtual void OnCloseContents(
67 TabContents* source, bool* out_close_dialog) OVERRIDE; 67 TabContents* source, bool* out_close_dialog) OVERRIDE;
68 virtual bool ShouldShowDialogTitle() const OVERRIDE; 68 virtual bool ShouldShowDialogTitle() const OVERRIDE;
69 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 69 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
70 70
71 // NotificationObserver implementation. 71 // NotificationObserver implementation.
72 virtual void Observe(int type, 72 virtual void Observe(int type,
73 const NotificationSource& source, 73 const NotificationSource& source,
74 const NotificationDetails& details); 74 const NotificationDetails& details);
75 75
76 private: 76 private:
77 // Notifications receiver. 77 // Notifications receiver.
78 Delegate* delegate_; 78 Delegate* delegate_;
79 79
80 gfx::NativeWindow parent_window_; 80 gfx::NativeWindow parent_window_;
81 std::wstring title_; 81 string16 title_;
82 GURL url_; 82 GURL url_;
83 Style style_; 83 Style style_;
84 NotificationRegistrar notification_registrar_; 84 NotificationRegistrar notification_registrar_;
85 BubbleFrameView* bubble_frame_view_; 85 BubbleFrameView* bubble_frame_view_;
86 bool is_open_; 86 bool is_open_;
87 87
88 // Dialog display size. 88 // Dialog display size.
89 int width_; 89 int width_;
90 int height_; 90 int height_;
91 91
92 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog); 92 DISALLOW_COPY_AND_ASSIGN(LoginHtmlDialog);
93 }; 93 };
94 94
95 } // namespace chromeos 95 } // namespace chromeos
96 96
97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_ 97 #endif // CHROME_BROWSER_CHROMEOS_LOGIN_LOGIN_HTML_DIALOG_H_
OLDNEW
« no previous file with comments | « chrome/browser/chromeos/choose_mobile_network_dialog.cc ('k') | chrome/browser/chromeos/login/login_html_dialog.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698