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

Side by Side Diff: chrome/browser/views/html_dialog_view.h

Issue 131094: Add GetMessageHandlers to HtmlDialogUIDelegate to allow... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 11 years, 6 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
« no previous file with comments | « chrome/browser/modal_html_dialog_delegate.h ('k') | chrome/browser/views/html_dialog_view.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 (c) 2006-2008 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2006-2008 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_VIEWS_HTML_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
7 7
8 #include <string> 8 #include <string>
9 9
10 #include "base/gfx/size.h" 10 #include "base/gfx/size.h"
(...skipping 36 matching lines...) Expand 10 before | Expand all | Expand 10 after
47 virtual bool IsModal() const; 47 virtual bool IsModal() const;
48 virtual std::wstring GetWindowTitle() const; 48 virtual std::wstring GetWindowTitle() const;
49 virtual void WindowClosing(); 49 virtual void WindowClosing();
50 virtual views::View* GetContentsView(); 50 virtual views::View* GetContentsView();
51 virtual views::View* GetInitiallyFocusedView(); 51 virtual views::View* GetInitiallyFocusedView();
52 52
53 // Overridden from HtmlDialogUI::Delegate: 53 // Overridden from HtmlDialogUI::Delegate:
54 virtual bool IsDialogModal() const; 54 virtual bool IsDialogModal() const;
55 virtual std::wstring GetDialogTitle() const; 55 virtual std::wstring GetDialogTitle() const;
56 virtual GURL GetDialogContentURL() const; 56 virtual GURL GetDialogContentURL() const;
57 virtual void GetDOMMessageHandlers(
58 std::vector<DOMMessageHandler*>* handlers) const;
57 virtual void GetDialogSize(gfx::Size* size) const; 59 virtual void GetDialogSize(gfx::Size* size) const;
58 virtual std::string GetDialogArgs() const; 60 virtual std::string GetDialogArgs() const;
59 virtual void OnDialogClosed(const std::string& json_retval); 61 virtual void OnDialogClosed(const std::string& json_retval);
60 62
61 // Overridden from TabContentsDelegate: 63 // Overridden from TabContentsDelegate:
62 virtual void OpenURLFromTab(TabContents* source, 64 virtual void OpenURLFromTab(TabContents* source,
63 const GURL& url, 65 const GURL& url,
64 const GURL& referrer, 66 const GURL& referrer,
65 WindowOpenDisposition disposition, 67 WindowOpenDisposition disposition,
66 PageTransition::Type transition); 68 PageTransition::Type transition);
(...skipping 25 matching lines...) Expand all
92 // This view is a delegate to the HTML content since it needs to get notified 94 // This view is a delegate to the HTML content since it needs to get notified
93 // about when the dialog is closing. For all other actions (besides dialog 95 // about when the dialog is closing. For all other actions (besides dialog
94 // closing) we delegate to the creator of this view, which we keep track of 96 // closing) we delegate to the creator of this view, which we keep track of
95 // using this variable. 97 // using this variable.
96 HtmlDialogUIDelegate* delegate_; 98 HtmlDialogUIDelegate* delegate_;
97 99
98 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); 100 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView);
99 }; 101 };
100 102
101 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_ 103 #endif // CHROME_BROWSER_VIEWS_HTML_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/modal_html_dialog_delegate.h ('k') | chrome/browser/views/html_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698