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

Side by Side Diff: chrome/browser/gtk/html_dialog_gtk.h

Issue 4110010: Cloud Print Dialog work. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Direct paths for prefs. Created 10 years, 1 month 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/dom_ui/html_dialog_ui.h ('k') | chrome/browser/modal_html_dialog_delegate.h » ('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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_GTK_HTML_DIALOG_GTK_H_ 5 #ifndef CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_
6 #define CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_ 6 #define CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_
7 #pragma once 7 #pragma once
8 8
9 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 28 matching lines...) Expand all
39 // Overridden from HtmlDialogUI::Delegate: 39 // Overridden from HtmlDialogUI::Delegate:
40 virtual bool IsDialogModal() const; 40 virtual bool IsDialogModal() const;
41 virtual std::wstring GetDialogTitle() const; 41 virtual std::wstring GetDialogTitle() const;
42 virtual GURL GetDialogContentURL() const; 42 virtual GURL GetDialogContentURL() const;
43 virtual void GetDOMMessageHandlers( 43 virtual void GetDOMMessageHandlers(
44 std::vector<DOMMessageHandler*>* handlers) const; 44 std::vector<DOMMessageHandler*>* handlers) const;
45 virtual void GetDialogSize(gfx::Size* size) const; 45 virtual void GetDialogSize(gfx::Size* size) const;
46 virtual std::string GetDialogArgs() const; 46 virtual std::string GetDialogArgs() const;
47 virtual void OnDialogClosed(const std::string& json_retval); 47 virtual void OnDialogClosed(const std::string& json_retval);
48 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) { } 48 virtual void OnCloseContents(TabContents* source, bool* out_close_dialog) { }
49 virtual bool ShouldShowDialogTitle() const { return true; }
49 50
50 // Overridden from TabContentsDelegate: 51 // Overridden from TabContentsDelegate:
51 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 52 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
52 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 53 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
53 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 54 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
54 55
55 private: 56 private:
56 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int); 57 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int);
57 58
58 // This view is a delegate to the HTML content since it needs to get notified 59 // This view is a delegate to the HTML content since it needs to get notified
59 // about when the dialog is closing. For all other actions (besides dialog 60 // about when the dialog is closing. For all other actions (besides dialog
60 // closing) we delegate to the creator of this view, which we keep track of 61 // closing) we delegate to the creator of this view, which we keep track of
61 // using this variable. 62 // using this variable.
62 HtmlDialogUIDelegate* delegate_; 63 HtmlDialogUIDelegate* delegate_;
63 64
64 gfx::NativeWindow parent_window_; 65 gfx::NativeWindow parent_window_;
65 66
66 GtkWidget* dialog_; 67 GtkWidget* dialog_;
67 68
68 scoped_ptr<TabContents> tab_contents_; 69 scoped_ptr<TabContents> tab_contents_;
69 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; 70 scoped_ptr<TabContentsContainerGtk> tab_contents_container_;
70 71
71 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); 72 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk);
72 }; 73 };
73 74
74 #endif // CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_ 75 #endif // CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/dom_ui/html_dialog_ui.h ('k') | chrome/browser/modal_html_dialog_delegate.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698