OLD | NEW |
1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_GTK_WEB_DIALOG_GTK_H_ | 5 #ifndef CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ | 6 #define CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
7 | 7 |
8 #include <string> | 8 #include <string> |
9 #include <vector> | 9 #include <vector> |
10 | 10 |
(...skipping 34 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
45 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; | 45 virtual void GetDialogSize(gfx::Size* size) const OVERRIDE; |
46 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE; | 46 virtual void GetMinimumDialogSize(gfx::Size* size) const OVERRIDE; |
47 virtual std::string GetDialogArgs() const OVERRIDE; | 47 virtual std::string GetDialogArgs() const OVERRIDE; |
48 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; | 48 virtual void OnDialogClosed(const std::string& json_retval) OVERRIDE; |
49 virtual void OnCloseContents(content::WebContents* source, | 49 virtual void OnCloseContents(content::WebContents* source, |
50 bool* out_close_dialog) OVERRIDE; | 50 bool* out_close_dialog) OVERRIDE; |
51 virtual bool ShouldShowDialogTitle() const OVERRIDE; | 51 virtual bool ShouldShowDialogTitle() const OVERRIDE; |
52 | 52 |
53 // Overridden from content::WebContentsDelegate: | 53 // Overridden from content::WebContentsDelegate: |
54 virtual void HandleKeyboardEvent( | 54 virtual void HandleKeyboardEvent( |
| 55 content::WebContents* source, |
55 const content::NativeWebKeyboardEvent& event) OVERRIDE; | 56 const content::NativeWebKeyboardEvent& event) OVERRIDE; |
56 virtual void CloseContents(content::WebContents* source) OVERRIDE; | 57 virtual void CloseContents(content::WebContents* source) OVERRIDE; |
57 virtual content::WebContents* OpenURLFromTab( | 58 virtual content::WebContents* OpenURLFromTab( |
58 content::WebContents* source, | 59 content::WebContents* source, |
59 const content::OpenURLParams& params) OVERRIDE; | 60 const content::OpenURLParams& params) OVERRIDE; |
60 virtual void AddNewContents(content::WebContents* source, | 61 virtual void AddNewContents(content::WebContents* source, |
61 content::WebContents* new_contents, | 62 content::WebContents* new_contents, |
62 WindowOpenDisposition disposition, | 63 WindowOpenDisposition disposition, |
63 const gfx::Rect& initial_pos, | 64 const gfx::Rect& initial_pos, |
64 bool user_gesture) OVERRIDE; | 65 bool user_gesture) OVERRIDE; |
(...skipping 12 matching lines...) Expand all Loading... |
77 | 78 |
78 GtkWidget* dialog_; | 79 GtkWidget* dialog_; |
79 | 80 |
80 scoped_ptr<TabContents> tab_; | 81 scoped_ptr<TabContents> tab_; |
81 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; | 82 scoped_ptr<TabContentsContainerGtk> tab_contents_container_; |
82 | 83 |
83 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk); | 84 DISALLOW_COPY_AND_ASSIGN(WebDialogGtk); |
84 }; | 85 }; |
85 | 86 |
86 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ | 87 #endif // CHROME_BROWSER_UI_GTK_WEB_DIALOG_GTK_H_ |
OLD | NEW |