diff options
author | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 00:01:30 +0000 |
---|---|---|
committer | brettw@chromium.org <brettw@chromium.org@0039d316-1c4b-4281-b951-d872f2087c98> | 2011-12-07 00:01:30 +0000 |
commit | 56d7ad42237c35d2b7653c7cad89e9ca6ea75d68 (patch) | |
tree | b16971de9045c0f3524566b5a242bef0ac0ab1db /ppapi/shared_impl/ppb_input_event_shared.h | |
parent | f26d7fa665143e0bf1c173e093f9eadce0a10e97 (diff) | |
download | chromium_src-56d7ad42237c35d2b7653c7cad89e9ca6ea75d68.zip chromium_src-56d7ad42237c35d2b7653c7cad89e9ca6ea75d68.tar.gz chromium_src-56d7ad42237c35d2b7653c7cad89e9ca6ea75d68.tar.bz2 |
Revert 113290 - Rename the shared_impl resource files to give them more regular names.
I keep getting confused between things like AudioImpl and PPB_Audio_Impl. This uses _shared for the names, so now we have _impl, _proxy, and _shared which makes more sense.
I also removed the ppb_opengles2_impl file since it was just a forward to the shared version.
BUG=
TEST=
Review URL: http://codereview.chromium.org/8790004
TBR=brettw@chromium.org
Review URL: http://codereview.chromium.org/8824015
git-svn-id: svn://svn.chromium.org/chrome/trunk/src@113302 0039d316-1c4b-4281-b951-d872f2087c98
Diffstat (limited to 'ppapi/shared_impl/ppb_input_event_shared.h')
-rw-r--r-- | ppapi/shared_impl/ppb_input_event_shared.h | 100 |
1 files changed, 0 insertions, 100 deletions
diff --git a/ppapi/shared_impl/ppb_input_event_shared.h b/ppapi/shared_impl/ppb_input_event_shared.h deleted file mode 100644 index 1a29750..0000000 --- a/ppapi/shared_impl/ppb_input_event_shared.h +++ /dev/null @@ -1,100 +0,0 @@ -// 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. - -#ifndef PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ -#define PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ - -#include <string> -#include <vector> - -#include "base/basictypes.h" -#include "base/compiler_specific.h" -#include "ppapi/shared_impl/resource.h" -#include "ppapi/thunk/ppb_input_event_api.h" - -namespace ppapi { - -// IF YOU ADD STUFF TO THIS CLASS -// ============================== -// Be sure to add it to the STRUCT_TRAITS at the top of ppapi_messages.h -struct PPAPI_SHARED_EXPORT InputEventData { - InputEventData(); - ~InputEventData(); - - // Internal-only value. Set to true when this input event is filtered, that - // is, should be delivered synchronously. This is used by the proxy. - bool is_filtered; - - PP_InputEvent_Type event_type; - PP_TimeTicks event_time_stamp; - uint32_t event_modifiers; - - PP_InputEvent_MouseButton mouse_button; - PP_Point mouse_position; - int32_t mouse_click_count; - PP_Point mouse_movement; - - PP_FloatPoint wheel_delta; - PP_FloatPoint wheel_ticks; - bool wheel_scroll_by_page; - - uint32_t key_code; - - std::string character_text; - - std::vector<uint32_t> composition_segment_offsets; - int32_t composition_target_segment; - uint32_t composition_selection_start; - uint32_t composition_selection_end; -}; - -// This simple class implements the PPB_InputEvent_API in terms of the -// shared InputEventData structure -class PPAPI_SHARED_EXPORT PPB_InputEvent_Shared - : public Resource, - public thunk::PPB_InputEvent_API { - public: - struct InitAsImpl {}; - struct InitAsProxy {}; - - // The dummy arguments control which version of Resource's constructor is - // called for this base class. - PPB_InputEvent_Shared(const InitAsImpl&, - PP_Instance instance, - const InputEventData& data); - PPB_InputEvent_Shared(const InitAsProxy&, - PP_Instance instance, - const InputEventData& data); - - // Resource overrides. - virtual PPB_InputEvent_API* AsPPB_InputEvent_API() OVERRIDE; - - // PPB_InputEvent_API implementation. - virtual const InputEventData& GetInputEventData() const OVERRIDE; - virtual PP_InputEvent_Type GetType() OVERRIDE; - virtual PP_TimeTicks GetTimeStamp() OVERRIDE; - virtual uint32_t GetModifiers() OVERRIDE; - virtual PP_InputEvent_MouseButton GetMouseButton() OVERRIDE; - virtual PP_Point GetMousePosition() OVERRIDE; - virtual int32_t GetMouseClickCount() OVERRIDE; - virtual PP_Point GetMouseMovement() OVERRIDE; - virtual PP_FloatPoint GetWheelDelta() OVERRIDE; - virtual PP_FloatPoint GetWheelTicks() OVERRIDE; - virtual PP_Bool GetWheelScrollByPage() OVERRIDE; - virtual uint32_t GetKeyCode() OVERRIDE; - virtual PP_Var GetCharacterText() OVERRIDE; - virtual uint32_t GetIMESegmentNumber() OVERRIDE; - virtual uint32_t GetIMESegmentOffset(uint32_t index) OVERRIDE; - virtual int32_t GetIMETargetSegment() OVERRIDE; - virtual void GetIMESelection(uint32_t* start, uint32_t* end) OVERRIDE; - - private: - InputEventData data_; - - DISALLOW_IMPLICIT_CONSTRUCTORS(PPB_InputEvent_Shared); -}; - -} // namespace ppapi - -#endif // PPAPI_SHARED_IMPL_PPB_INPUT_EVENT_SHARED_H_ |