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

Side by Side Diff: chrome/common/temp_scaffolding_stubs.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/views/html_dialog_view.cc ('k') | no next file » | 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) 2009 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2009 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_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 5 #ifndef CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 6 #define CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
7 7
8 // This file provides declarations and stub definitions for classes we encouter 8 // This file provides declarations and stub definitions for classes we encouter
9 // during the porting effort. It is not meant to be permanent, and classes will 9 // during the porting effort. It is not meant to be permanent, and classes will
10 // be removed from here as they are fleshed out more completely. 10 // be removed from here as they are fleshed out more completely.
(...skipping 314 matching lines...) Expand 10 before | Expand all | Expand 10 after
325 }; 325 };
326 326
327 class ModalHtmlDialogDelegate : public HtmlDialogUIDelegate { 327 class ModalHtmlDialogDelegate : public HtmlDialogUIDelegate {
328 public: 328 public:
329 ModalHtmlDialogDelegate(const GURL&, int, int, const std::string&, 329 ModalHtmlDialogDelegate(const GURL&, int, int, const std::string&,
330 IPC::Message*, TabContents*) { } 330 IPC::Message*, TabContents*) { }
331 331
332 virtual bool IsDialogModal() const { return true; } 332 virtual bool IsDialogModal() const { return true; }
333 virtual std::wstring GetDialogTitle() const { return std::wstring(); } 333 virtual std::wstring GetDialogTitle() const { return std::wstring(); }
334 virtual GURL GetDialogContentURL() const { return GURL(); } 334 virtual GURL GetDialogContentURL() const { return GURL(); }
335 virtual void GetDOMMessageHandlers(
336 std::vector<DOMMessageHandler*>* handlers) const {}
335 virtual void GetDialogSize(gfx::Size* size) const {} 337 virtual void GetDialogSize(gfx::Size* size) const {}
336 virtual std::string GetDialogArgs() const { return std::string(); } 338 virtual std::string GetDialogArgs() const { return std::string(); }
337 virtual void OnDialogClosed(const std::string& json_retval) {} 339 virtual void OnDialogClosed(const std::string& json_retval) {}
338 }; 340 };
339 341
340 class HtmlDialogContents { 342 class HtmlDialogContents {
341 public: 343 public:
342 struct HtmlDialogParams { 344 struct HtmlDialogParams {
343 GURL url; 345 GURL url;
344 int width; 346 int width;
(...skipping 65 matching lines...) Expand 10 before | Expand all | Expand 10 after
410 void SchedulePaint() { NOTIMPLEMENTED(); } 412 void SchedulePaint() { NOTIMPLEMENTED(); }
411 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; } 413 HWNDView* GetParent() const { NOTIMPLEMENTED(); return NULL; }
412 virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); } 414 virtual gfx::Size GetPreferredSize() { NOTIMPLEMENTED(); return gfx::Size(); }
413 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; } 415 gfx::NativeWindow GetHWND() { NOTIMPLEMENTED(); return 0; }
414 void Detach() { NOTIMPLEMENTED(); } 416 void Detach() { NOTIMPLEMENTED(); }
415 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; } 417 gfx::Widget* GetWidget() { NOTIMPLEMENTED(); return NULL; }
416 }; 418 };
417 } // namespace views 419 } // namespace views
418 420
419 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_ 421 #endif // CHROME_COMMON_TEMP_SCAFFOLDING_STUBS_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/html_dialog_view.cc ('k') | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698