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

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

Issue 5794003: Deinline even more destructors. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 10 years 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/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/html_dialog_gtk.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) 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 virtual bool ShouldShowDialogTitle() const;
50 50
51 // Overridden from TabContentsDelegate: 51 // Overridden from TabContentsDelegate:
52 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 52 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
53 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 53 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
54 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event); 54 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
55 55
56 private: 56 private:
57 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int); 57 CHROMEGTK_CALLBACK_1(HtmlDialogGtk, void, OnResponse, int);
58 58
59 // 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
60 // 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
61 // 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
62 // using this variable. 62 // using this variable.
63 HtmlDialogUIDelegate* delegate_; 63 HtmlDialogUIDelegate* delegate_;
64 64
65 gfx::NativeWindow parent_window_; 65 gfx::NativeWindow parent_window_;
66 66
67 GtkWidget* dialog_; 67 GtkWidget* dialog_;
68 68
69 scoped_ptr<TabContents> tab_contents_; 69 scoped_ptr<TabContents> tab_contents_;
70 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; 70 scoped_ptr<TabContentsContainerGtk> tab_contents_container_;
71 71
72 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); 72 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk);
73 }; 73 };
74 74
75 #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/gtk/download_shelf_gtk.cc ('k') | chrome/browser/gtk/html_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698