summaryrefslogtreecommitdiffstats
path: root/ppapi/shared_impl/ppp_instance_combined.cc
blob: ffb96a40e365bf4b80f793f3289669319f15a86d (plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
// Copyright (c) 2011 The Chromium Authors. All rights reserved.
// Use of this source code is governed by a BSD-style license that can be
// found in the LICENSE file.

#include "ppapi/shared_impl/ppp_instance_combined.h"

namespace ppapi {

PPP_Instance_Combined::PPP_Instance_Combined(
    const PPP_Instance_1_0& instance_if)
    : PPP_Instance_1_0(instance_if),
      HandleInputEvent_0_5(NULL) {
}

PPP_Instance_Combined::PPP_Instance_Combined(
    const PPP_Instance_0_5& instance_if)
    : PPP_Instance_1_0(),
      HandleInputEvent_0_5(instance_if.HandleInputEvent) {
  DidCreate = instance_if.DidCreate;
  DidDestroy = instance_if.DidDestroy;
  DidChangeView = instance_if.DidChangeView;
  DidChangeFocus = instance_if.DidChangeFocus;
  HandleDocumentLoad = instance_if.HandleDocumentLoad;
}

}  // namespace ppapi