| OLD | NEW |
| 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 #include "content/renderer/render_view_impl.h" | 5 #include "content/renderer/render_view_impl.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <cmath> | 8 #include <cmath> |
| 9 | 9 |
| 10 #include "base/bind.h" | 10 #include "base/bind.h" |
| (...skipping 2052 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2063 } | 2063 } |
| 2064 | 2064 |
| 2065 void RenderViewImpl::didHandleGestureEvent(const WebGestureEvent& event, | 2065 void RenderViewImpl::didHandleGestureEvent(const WebGestureEvent& event, |
| 2066 bool event_swallowed) { | 2066 bool event_swallowed) { |
| 2067 #if defined(OS_ANDROID) | 2067 #if defined(OS_ANDROID) |
| 2068 if (event.type == WebInputEvent::GestureTap || | 2068 if (event.type == WebInputEvent::GestureTap || |
| 2069 event.type == WebInputEvent::GestureLongPress) { | 2069 event.type == WebInputEvent::GestureLongPress) { |
| 2070 UpdateTextInputState(SHOW_IME_IF_NEEDED); | 2070 UpdateTextInputState(SHOW_IME_IF_NEEDED); |
| 2071 } | 2071 } |
| 2072 #endif | 2072 #endif |
| 2073 FOR_EACH_OBSERVER(RenderViewObserver, observers_, |
| 2074 DidHandleGestureEvent(event)); |
| 2073 } | 2075 } |
| 2074 | 2076 |
| 2075 WebKit::WebColorChooser* RenderViewImpl::createColorChooser( | 2077 WebKit::WebColorChooser* RenderViewImpl::createColorChooser( |
| 2076 WebKit::WebColorChooserClient* client, | 2078 WebKit::WebColorChooserClient* client, |
| 2077 const WebKit::WebColor& initial_color) { | 2079 const WebKit::WebColor& initial_color) { |
| 2078 RendererWebColorChooserImpl* color_chooser = | 2080 RendererWebColorChooserImpl* color_chooser = |
| 2079 new RendererWebColorChooserImpl(this, client); | 2081 new RendererWebColorChooserImpl(this, client); |
| 2080 color_chooser->Open(static_cast<SkColor>(initial_color)); | 2082 color_chooser->Open(static_cast<SkColor>(initial_color)); |
| 2081 return color_chooser; | 2083 return color_chooser; |
| 2082 } | 2084 } |
| (...skipping 4398 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 6481 } | 6483 } |
| 6482 #endif | 6484 #endif |
| 6483 | 6485 |
| 6484 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( | 6486 void RenderViewImpl::OnReleaseDisambiguationPopupDIB( |
| 6485 TransportDIB::Handle dib_handle) { | 6487 TransportDIB::Handle dib_handle) { |
| 6486 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); | 6488 TransportDIB* dib = TransportDIB::CreateWithHandle(dib_handle); |
| 6487 RenderProcess::current()->ReleaseTransportDIB(dib); | 6489 RenderProcess::current()->ReleaseTransportDIB(dib); |
| 6488 } | 6490 } |
| 6489 | 6491 |
| 6490 } // namespace content | 6492 } // namespace content |
| OLD | NEW |