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

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

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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/ui/login/login_prompt_ui.cc ('k') | chrome/browser/ui/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) 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_UI_VIEWS_HTML_DIALOG_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ 6 #define CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 51 matching lines...) Expand 10 before | Expand all | Expand 10 after
62 virtual views::View* GetInitiallyFocusedView() OVERRIDE; 62 virtual views::View* GetInitiallyFocusedView() OVERRIDE;
63 virtual bool ShouldShowWindowTitle() const OVERRIDE; 63 virtual bool ShouldShowWindowTitle() const OVERRIDE;
64 virtual views::Widget* GetWidget() OVERRIDE; 64 virtual views::Widget* GetWidget() OVERRIDE;
65 virtual const views::Widget* GetWidget() const OVERRIDE; 65 virtual const views::Widget* GetWidget() const OVERRIDE;
66 66
67 // Overridden from HtmlDialogUIDelegate: 67 // Overridden from HtmlDialogUIDelegate:
68 virtual bool IsDialogModal() const OVERRIDE; 68 virtual bool IsDialogModal() const OVERRIDE;
69 virtual string16 GetDialogTitle() const OVERRIDE; 69 virtual string16 GetDialogTitle() const OVERRIDE;
70 virtual GURL GetDialogContentURL() const OVERRIDE; 70 virtual GURL GetDialogContentURL() const OVERRIDE;
71 virtual void GetWebUIMessageHandlers( 71 virtual void GetWebUIMessageHandlers(
72 std::vector<WebUIMessageHandler*>* handlers) const OVERRIDE; 72 std::vector<content::WebUIMessageHandler*>* handlers) const OVERRIDE;
73 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; 73 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE;
74 virtual std::string GetDialogArgs() const OVERRIDE; 74 virtual std::string GetDialogArgs() const OVERRIDE;
75 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; 75 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE;
76 virtual void OnCloseContents(content::WebContents* source, 76 virtual void OnCloseContents(content::WebContents* source,
77 bool* out_close_dialog) OVERRIDE; 77 bool* out_close_dialog) OVERRIDE;
78 virtual bool ShouldShowDialogTitle() const OVERRIDE; 78 virtual bool ShouldShowDialogTitle() const OVERRIDE;
79 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE; 79 virtual bool HandleContextMenu(const ContextMenuParams& params) OVERRIDE;
80 80
81 // Overridden from content::WebContentsDelegate: 81 // Overridden from content::WebContentsDelegate:
82 virtual void MoveContents(content::WebContents* source, 82 virtual void MoveContents(content::WebContents* source,
(...skipping 25 matching lines...) Expand all
108 // This view is a delegate to the HTML content since it needs to get notified 108 // This view is a delegate to the HTML content since it needs to get notified
109 // about when the dialog is closing. For all other actions (besides dialog 109 // about when the dialog is closing. For all other actions (besides dialog
110 // closing) we delegate to the creator of this view, which we keep track of 110 // closing) we delegate to the creator of this view, which we keep track of
111 // using this variable. 111 // using this variable.
112 HtmlDialogUIDelegate* delegate_; 112 HtmlDialogUIDelegate* delegate_;
113 113
114 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView); 114 DISALLOW_COPY_AND_ASSIGN(HtmlDialogView);
115 }; 115 };
116 116
117 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_ 117 #endif // CHROME_BROWSER_UI_VIEWS_HTML_DIALOG_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/login/login_prompt_ui.cc ('k') | chrome/browser/ui/views/html_dialog_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698