| 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 #include "webkit/plugins/npapi/webplugin.h" | 5 #include "webkit/plugins/npapi/webplugin.h" |
| 6 | 6 |
| 7 namespace webkit { | 7 namespace webkit { |
| 8 namespace npapi { | 8 namespace npapi { |
| 9 | 9 |
| 10 WebPluginGeometry::WebPluginGeometry() | 10 WebPluginGeometry::WebPluginGeometry() |
| 11 : window(gfx::kNullPluginWindow), | 11 : window(gfx::kNullPluginWindow), |
| 12 rects_valid(false), | 12 rects_valid(false), |
| 13 visible(false) { | 13 visible(false) { |
| 14 } | 14 } |
| 15 | 15 |
| 16 WebPluginGeometry::~WebPluginGeometry() { | 16 WebPluginGeometry::~WebPluginGeometry() { |
| 17 } | 17 } |
| 18 | 18 |
| 19 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { | 19 bool WebPluginGeometry::Equals(const WebPluginGeometry& rhs) const { |
| 20 return window == rhs.window && | 20 return window == rhs.window && |
| 21 window_rect == rhs.window_rect && | 21 window_rect == rhs.window_rect && |
| 22 clip_rect == rhs.clip_rect && | 22 clip_rect == rhs.clip_rect && |
| 23 cutout_rects == rhs.cutout_rects && | 23 cutout_rects == rhs.cutout_rects && |
| 24 rects_valid == rhs.rects_valid && | 24 rects_valid == rhs.rects_valid && |
| 25 visible == rhs.visible; | 25 visible == rhs.visible; |
| 26 } | 26 } |
| 27 | 27 |
| 28 #if defined(OS_MACOSX) | 28 #if defined(OS_MACOSX) |
| 29 WebPluginAcceleratedSurface* WebPlugin::GetAcceleratedSurface() { | 29 WebPluginAcceleratedSurface* WebPlugin::GetAcceleratedSurface( |
| 30 gfx::GpuPreference gpu_preference) { |
| 30 return NULL; | 31 return NULL; |
| 31 } | 32 } |
| 32 #endif | 33 #endif |
| 33 | 34 |
| 34 } // namespace npapi | 35 } // namespace npapi |
| 35 } // namespace webkit | 36 } // namespace webkit |
| OLD | NEW |