Chromium Code Reviews
chromiumcodereview-hr@appspot.gserviceaccount.com (chromiumcodereview-hr) | Please choose your nickname with Settings | Help | Chromium Project | Gerrit Changes | Sign out
(364)

Side by Side Diff: webkit/plugins/ppapi/plugin_delegate.h

Issue 19800005: Hide knowledge of webkit::ppapi::PluginDelegate from chrome. This is part of moving ppapi implement… (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 7 years, 5 months ago
Use n/p to move between diff chunks; N/P to move between comments. Draft comments are only viewable by you.
Jump to:
View unified diff | Download patch | Annotate | Revision Log
OLDNEW
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 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 5 #ifndef WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 6 #define WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
7 7
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 595 matching lines...) Expand 10 before | Expand all | Expand 10 after
606 // size. 606 // size.
607 virtual gfx::Size GetScreenSize() = 0; 607 virtual gfx::Size GetScreenSize() = 0;
608 608
609 // Returns a string with the name of the default 8-bit char encoding. 609 // Returns a string with the name of the default 8-bit char encoding.
610 virtual std::string GetDefaultEncoding() = 0; 610 virtual std::string GetDefaultEncoding() = 0;
611 611
612 // Sets the minimum and maximum zoom factors. 612 // Sets the minimum and maximum zoom factors.
613 virtual void ZoomLimitsChanged(double minimum_factor, 613 virtual void ZoomLimitsChanged(double minimum_factor,
614 double maximum_factor) = 0; 614 double maximum_factor) = 0;
615 615
616 // Tell the browser when resource loading starts/ends.
617 virtual void DidStartLoading() = 0;
618 virtual void DidStopLoading() = 0;
619
620 // Sets restrictions on how the content can be used (i.e. no print/copy).
621 virtual void SetContentRestriction(int restrictions) = 0;
622
623 // Tells the browser to bring up SaveAs dialog to save specified URL.
624 virtual void SaveURLAs(const GURL& url) = 0;
625
626 // Create an anonymous shared memory segment of size |size| bytes, and return 616 // Create an anonymous shared memory segment of size |size| bytes, and return
627 // a pointer to it, or NULL on error. Caller owns the returned pointer. 617 // a pointer to it, or NULL on error. Caller owns the returned pointer.
628 virtual base::SharedMemory* CreateAnonymousSharedMemory(size_t size) = 0; 618 virtual base::SharedMemory* CreateAnonymousSharedMemory(size_t size) = 0;
629 619
630 // Returns the current preferences. 620 // Returns the current preferences.
631 virtual ::ppapi::Preferences GetPreferences() = 0; 621 virtual ::ppapi::Preferences GetPreferences() = 0;
632 622
633 // Locks the mouse for |instance|. If false is returned, the lock is not 623 // Locks the mouse for |instance|. If false is returned, the lock is not
634 // possible. If true is returned then the lock is pending. Success or 624 // possible. If true is returned then the lock is pending. Success or
635 // failure will be delivered asynchronously via 625 // failure will be delivered asynchronously via
(...skipping 58 matching lines...) Expand 10 before | Expand all | Expand 10 after
694 // The loader object should set itself on the PluginInstance as the document 684 // The loader object should set itself on the PluginInstance as the document
695 // loader using set_document_loader. 685 // loader using set_document_loader.
696 virtual void HandleDocumentLoad(PluginInstance* instance, 686 virtual void HandleDocumentLoad(PluginInstance* instance,
697 const WebKit::WebURLResponse& response) = 0; 687 const WebKit::WebURLResponse& response) = 0;
698 }; 688 };
699 689
700 } // namespace ppapi 690 } // namespace ppapi
701 } // namespace webkit 691 } // namespace webkit
702 692
703 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_ 693 #endif // WEBKIT_PLUGINS_PPAPI_PLUGIN_DELEGATE_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698