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 "ppapi/cpp/view.h" | 5 #include "ppapi/cpp/view.h" |
6 | 6 |
7 #include "ppapi/c/ppb_view.h" | 7 #include "ppapi/c/ppb_view.h" |
8 #include "ppapi/cpp/module_impl.h" | 8 #include "ppapi/cpp/module_impl.h" |
9 | 9 |
10 namespace pp { | 10 namespace pp { |
(...skipping 42 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
53 Rect View::GetClipRect() const { | 53 Rect View::GetClipRect() const { |
54 if (!has_interface<PPB_View>()) | 54 if (!has_interface<PPB_View>()) |
55 return Rect(); | 55 return Rect(); |
56 PP_Rect out; | 56 PP_Rect out; |
57 if (PP_ToBool(get_interface<PPB_View>()->GetClipRect(pp_resource(), &out))) | 57 if (PP_ToBool(get_interface<PPB_View>()->GetClipRect(pp_resource(), &out))) |
58 return Rect(out); | 58 return Rect(out); |
59 return Rect(); | 59 return Rect(); |
60 } | 60 } |
61 | 61 |
62 } // namespace pp | 62 } // namespace pp |
OLD | NEW |