OLD | NEW |
1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #ifdef _MSC_VER | 5 #ifdef _MSC_VER |
6 // Do not warn about use of std::copy with raw pointers. | 6 // Do not warn about use of std::copy with raw pointers. |
7 #pragma warning(disable : 4996) | 7 #pragma warning(disable : 4996) |
8 #endif | 8 #endif |
9 | 9 |
10 #include "native_client/src/trusted/plugin/plugin.h" | 10 #include "native_client/src/trusted/plugin/plugin.h" |
(...skipping 1069 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
1080 PLUGIN_PRINTF(("Plugin::DidChangeView (this=%p)\n", | 1080 PLUGIN_PRINTF(("Plugin::DidChangeView (this=%p)\n", |
1081 static_cast<void*>(this))); | 1081 static_cast<void*>(this))); |
1082 | 1082 |
1083 if (!BrowserPpp::is_valid(ppapi_proxy_)) { | 1083 if (!BrowserPpp::is_valid(ppapi_proxy_)) { |
1084 // Store this event and replay it when the proxy becomes available. | 1084 // Store this event and replay it when the proxy becomes available. |
1085 replayDidChangeView = true; | 1085 replayDidChangeView = true; |
1086 replayDidChangeViewPosition = position; | 1086 replayDidChangeViewPosition = position; |
1087 replayDidChangeViewClip = clip; | 1087 replayDidChangeViewClip = clip; |
1088 return; | 1088 return; |
1089 } else { | 1089 } else { |
| 1090 /* |
1090 ppapi_proxy_->ppp_instance_interface()->DidChangeView( | 1091 ppapi_proxy_->ppp_instance_interface()->DidChangeView( |
1091 pp_instance(), &(position.pp_rect()), &(clip.pp_rect())); | 1092 pp_instance(), &(position.pp_rect()), &(clip.pp_rect())); |
| 1093 */ |
1092 } | 1094 } |
1093 } | 1095 } |
1094 | 1096 |
1095 | 1097 |
1096 void Plugin::DidChangeFocus(bool has_focus) { | 1098 void Plugin::DidChangeFocus(bool has_focus) { |
1097 PLUGIN_PRINTF(("Plugin::DidChangeFocus (this=%p)\n", | 1099 PLUGIN_PRINTF(("Plugin::DidChangeFocus (this=%p)\n", |
1098 static_cast<void*>(this))); | 1100 static_cast<void*>(this))); |
1099 if (!BrowserPpp::is_valid(ppapi_proxy_)) { | 1101 if (!BrowserPpp::is_valid(ppapi_proxy_)) { |
1100 return; | 1102 return; |
1101 } else { | 1103 } else { |
(...skipping 939 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
2041 std::string scheme = canonicalized.AsString().substr(comps.scheme.begin, | 2043 std::string scheme = canonicalized.AsString().substr(comps.scheme.begin, |
2042 comps.scheme.len); | 2044 comps.scheme.len); |
2043 if (scheme == kChromeExtensionUriScheme) | 2045 if (scheme == kChromeExtensionUriScheme) |
2044 return SCHEME_CHROME_EXTENSION; | 2046 return SCHEME_CHROME_EXTENSION; |
2045 if (scheme == kDataUriScheme) | 2047 if (scheme == kDataUriScheme) |
2046 return SCHEME_DATA; | 2048 return SCHEME_DATA; |
2047 return SCHEME_OTHER; | 2049 return SCHEME_OTHER; |
2048 } | 2050 } |
2049 | 2051 |
2050 } // namespace plugin | 2052 } // namespace plugin |
OLD | NEW |