Don't announce clipboard events if the event target is not visible and focused.
[chromium-blink-merge.git] / ppapi / proxy / ppp_pdf_proxy.h
blob2544c0f5230e32c91e757dfde16dfa83b66ef066
1 // Copyright 2014 The Chromium Authors. All rights reserved.
2 // Use of this source code is governed by a BSD-style license that can be
3 // found in the LICENSE file.
5 #ifndef PPAPI_PROXY_PPP_PDF_PROXY_H_
6 #define PPAPI_PROXY_PPP_PDF_PROXY_H_
8 #include "ppapi/c/private/ppp_pdf.h"
9 #include "ppapi/proxy/interface_proxy.h"
11 namespace ppapi {
13 namespace proxy {
15 class PPP_Pdf_Proxy : public InterfaceProxy {
16 public:
17 PPP_Pdf_Proxy(Dispatcher* dispatcher);
18 virtual ~PPP_Pdf_Proxy();
20 static const PPP_Pdf* GetProxyInterface();
22 // InterfaceProxy implementation.
23 virtual bool OnMessageReceived(const IPC::Message& msg);
25 private:
26 // Message handlers.
27 void OnPluginMsgRotate(PP_Instance instance, bool clockwise);
28 void OnPluginMsgPrintPresetOptions(PP_Instance instance,
29 PP_PdfPrintPresetOptions_Dev* options,
30 PP_Bool* result);
32 // When this proxy is in the plugin side, this value caches the interface
33 // pointer so we don't have to retrieve it from the dispatcher each time.
34 // In the host, this value is always NULL.
35 const PPP_Pdf* ppp_pdf_;
37 DISALLOW_COPY_AND_ASSIGN(PPP_Pdf_Proxy);
40 } // namespace proxy
41 } // namespace ppapi
43 #endif // PPAPI_PROXY_PPP_PDF_PROXY_H_