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

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

Issue 525112: Implement HandleKeyboardEvent() method in HtmlDialog implementations.... (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: '' Created 10 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
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_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 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 virtual GURL GetDialogContentURL() const; 40 virtual GURL GetDialogContentURL() const;
41 virtual void GetDOMMessageHandlers( 41 virtual void GetDOMMessageHandlers(
42 std::vector<DOMMessageHandler*>* handlers) const; 42 std::vector<DOMMessageHandler*>* handlers) const;
43 virtual void GetDialogSize(gfx::Size* size) const; 43 virtual void GetDialogSize(gfx::Size* size) const;
44 virtual std::string GetDialogArgs() const; 44 virtual std::string GetDialogArgs() const;
45 virtual void OnDialogClosed(const std::string& json_retval); 45 virtual void OnDialogClosed(const std::string& json_retval);
46 46
47 // Overridden from TabContentsDelegate: 47 // Overridden from TabContentsDelegate:
48 virtual void MoveContents(TabContents* source, const gfx::Rect& pos); 48 virtual void MoveContents(TabContents* source, const gfx::Rect& pos);
49 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating); 49 virtual void ToolbarSizeChanged(TabContents* source, bool is_animating);
50 virtual void HandleKeyboardEvent(const NativeWebKeyboardEvent& event);
50 51
51 private: 52 private:
52 static void OnResponse(GtkWidget* widget, int response, 53 static void OnResponse(GtkWidget* widget, int response,
53 HtmlDialogGtk* dialog); 54 HtmlDialogGtk* dialog);
54 55
55 // This view is a delegate to the HTML content since it needs to get notified 56 // This view is a delegate to the HTML content since it needs to get notified
56 // about when the dialog is closing. For all other actions (besides dialog 57 // about when the dialog is closing. For all other actions (besides dialog
57 // closing) we delegate to the creator of this view, which we keep track of 58 // closing) we delegate to the creator of this view, which we keep track of
58 // using this variable. 59 // using this variable.
59 HtmlDialogUIDelegate* delegate_; 60 HtmlDialogUIDelegate* delegate_;
60 61
61 gfx::NativeWindow parent_window_; 62 gfx::NativeWindow parent_window_;
62 63
63 GtkWidget* dialog_; 64 GtkWidget* dialog_;
64 65
65 scoped_ptr<TabContents> tab_contents_; 66 scoped_ptr<TabContents> tab_contents_;
66 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; 67 scoped_ptr<TabContentsContainerGtk> tab_contents_container_;
67 68
68 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk); 69 DISALLOW_COPY_AND_ASSIGN(HtmlDialogGtk);
69 }; 70 };
70 71
71 #endif // CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_ 72 #endif // CHROME_BROWSER_GTK_HTML_DIALOG_GTK_H_
OLDNEW
« no previous file with comments | « chrome/browser/cocoa/html_dialog_window_controller.mm ('k') | chrome/browser/gtk/html_dialog_gtk.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698