| 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 // This file was forked off the Mac port. | 5 // This file was forked off the Mac port. |
| 6 | 6 |
| 7 #include "webkit/tools/test_shell/test_webview_delegate.h" | 7 #include "webkit/tools/test_shell/test_webview_delegate.h" |
| 8 | 8 |
| 9 #include <gdk/gdkx.h> | 9 #include <gdk/gdkx.h> |
| 10 #include <gtk/gtk.h> | 10 #include <gtk/gtk.h> |
| (...skipping 180 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 191 return WebRect(); | 191 return WebRect(); |
| 192 } | 192 } |
| 193 | 193 |
| 194 void TestWebViewDelegate::runModal() { | 194 void TestWebViewDelegate::runModal() { |
| 195 NOTIMPLEMENTED(); | 195 NOTIMPLEMENTED(); |
| 196 } | 196 } |
| 197 | 197 |
| 198 // WebPluginPageDelegate ------------------------------------------------------ | 198 // WebPluginPageDelegate ------------------------------------------------------ |
| 199 | 199 |
| 200 webkit::npapi::WebPluginDelegate* TestWebViewDelegate::CreatePluginDelegate( | 200 webkit::npapi::WebPluginDelegate* TestWebViewDelegate::CreatePluginDelegate( |
| 201 const FilePath& path, | 201 const base::FilePath& path, |
| 202 const std::string& mime_type) { | 202 const std::string& mime_type) { |
| 203 return webkit::npapi::WebPluginDelegateImpl::Create(path, mime_type); | 203 return webkit::npapi::WebPluginDelegateImpl::Create(path, mime_type); |
| 204 } | 204 } |
| 205 | 205 |
| 206 void TestWebViewDelegate::CreatedPluginWindow( | 206 void TestWebViewDelegate::CreatedPluginWindow( |
| 207 gfx::PluginWindowHandle id) { | 207 gfx::PluginWindowHandle id) { |
| 208 shell_->webViewHost()->CreatePluginContainer(id); | 208 shell_->webViewHost()->CreatePluginContainer(id); |
| 209 } | 209 } |
| 210 | 210 |
| 211 void TestWebViewDelegate::WillDestroyPluginWindow( | 211 void TestWebViewDelegate::WillDestroyPluginWindow( |
| (...skipping 44 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 256 } | 256 } |
| 257 | 257 |
| 258 void TestWebViewDelegate::SetPageTitle(const string16& title) { | 258 void TestWebViewDelegate::SetPageTitle(const string16& title) { |
| 259 gtk_window_set_title(GTK_WINDOW(shell_->mainWnd()), | 259 gtk_window_set_title(GTK_WINDOW(shell_->mainWnd()), |
| 260 ("Test Shell - " + UTF16ToUTF8(title)).c_str()); | 260 ("Test Shell - " + UTF16ToUTF8(title)).c_str()); |
| 261 } | 261 } |
| 262 | 262 |
| 263 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { | 263 void TestWebViewDelegate::SetAddressBarURL(const GURL& url) { |
| 264 gtk_entry_set_text(GTK_ENTRY(shell_->editWnd()), url.spec().c_str()); | 264 gtk_entry_set_text(GTK_ENTRY(shell_->editWnd()), url.spec().c_str()); |
| 265 } | 265 } |
| OLD | NEW |