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 #include "content/test/ppapi_unittest.h" | 5 #include "content/test/ppapi_unittest.h" |
6 | 6 |
| 7 #include <stdint.h> |
| 8 |
7 #include "base/message_loop/message_loop.h" | 9 #include "base/message_loop/message_loop.h" |
8 #include "content/renderer/pepper/gfx_conversion.h" | 10 #include "content/renderer/pepper/gfx_conversion.h" |
9 #include "content/renderer/pepper/host_globals.h" | 11 #include "content/renderer/pepper/host_globals.h" |
10 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" | 12 #include "content/renderer/pepper/pepper_plugin_instance_impl.h" |
11 #include "content/renderer/pepper/plugin_module.h" | 13 #include "content/renderer/pepper/plugin_module.h" |
12 #include "ppapi/c/pp_errors.h" | 14 #include "ppapi/c/pp_errors.h" |
13 #include "ppapi/c/pp_var.h" | 15 #include "ppapi/c/pp_var.h" |
14 #include "ppapi/c/ppp_instance.h" | 16 #include "ppapi/c/ppp_instance.h" |
15 #include "ppapi/shared_impl/ppapi_globals.h" | 17 #include "ppapi/shared_impl/ppapi_globals.h" |
16 #include "ppapi/shared_impl/ppapi_permissions.h" | 18 #include "ppapi/shared_impl/ppapi_permissions.h" |
(...skipping 92 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
109 DCHECK(module_->HasOneRef()); | 111 DCHECK(module_->HasOneRef()); |
110 module_ = NULL; | 112 module_ = NULL; |
111 } | 113 } |
112 | 114 |
113 void PpapiUnittest::SetViewSize(int width, int height) const { | 115 void PpapiUnittest::SetViewSize(int width, int height) const { |
114 instance_->view_data_.rect = PP_FromGfxRect(gfx::Rect(0, 0, width, height)); | 116 instance_->view_data_.rect = PP_FromGfxRect(gfx::Rect(0, 0, width, height)); |
115 instance_->view_data_.clip_rect = instance_->view_data_.rect; | 117 instance_->view_data_.clip_rect = instance_->view_data_.rect; |
116 } | 118 } |
117 | 119 |
118 } // namespace content | 120 } // namespace content |
OLD | NEW |