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

Side by Side Diff: content/renderer/render_view_impl.cc

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Fixed issues Created 8 years, 10 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
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 #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 #include <string> 9 #include <string>
10 #include <vector> 10 #include <vector>
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 #include "content/renderer/mhtml_generator.h" 70 #include "content/renderer/mhtml_generator.h"
71 #include "content/renderer/mouse_lock_dispatcher.h" 71 #include "content/renderer/mouse_lock_dispatcher.h"
72 #include "content/renderer/notification_provider.h" 72 #include "content/renderer/notification_provider.h"
73 #include "content/renderer/p2p/socket_dispatcher.h" 73 #include "content/renderer/p2p/socket_dispatcher.h"
74 #include "content/renderer/plugin_channel_host.h" 74 #include "content/renderer/plugin_channel_host.h"
75 #include "content/renderer/render_process.h" 75 #include "content/renderer/render_process.h"
76 #include "content/renderer/render_thread_impl.h" 76 #include "content/renderer/render_thread_impl.h"
77 #include "content/renderer/render_widget_fullscreen_pepper.h" 77 #include "content/renderer/render_widget_fullscreen_pepper.h"
78 #include "content/renderer/renderer_accessibility.h" 78 #include "content/renderer/renderer_accessibility.h"
79 #include "content/renderer/renderer_webapplicationcachehost_impl.h" 79 #include "content/renderer/renderer_webapplicationcachehost_impl.h"
80 #include "content/renderer/renderer_webcolorchooser_impl.h"
80 #include "content/renderer/renderer_webstoragenamespace_impl.h" 81 #include "content/renderer/renderer_webstoragenamespace_impl.h"
81 #include "content/renderer/speech_input_dispatcher.h" 82 #include "content/renderer/speech_input_dispatcher.h"
82 #include "content/renderer/text_input_client_observer.h" 83 #include "content/renderer/text_input_client_observer.h"
83 #include "content/renderer/v8_value_converter_impl.h" 84 #include "content/renderer/v8_value_converter_impl.h"
84 #include "content/renderer/web_ui_bindings.h" 85 #include "content/renderer/web_ui_bindings.h"
85 #include "content/renderer/webplugin_delegate_proxy.h" 86 #include "content/renderer/webplugin_delegate_proxy.h"
86 #include "content/renderer/websharedworker_proxy.h" 87 #include "content/renderer/websharedworker_proxy.h"
87 #include "media/base/filter_collection.h" 88 #include "media/base/filter_collection.h"
88 #include "media/base/media_switches.h" 89 #include "media/base/media_switches.h"
89 #include "media/base/message_loop_factory_impl.h" 90 #include "media/base/message_loop_factory_impl.h"
(...skipping 1599 matching lines...) Expand 10 before | Expand all | Expand 10 after
1689 // seems safest to not execute the rest. 1690 // seems safest to not execute the rest.
1690 if (!frame->executeCommand(WebString::fromUTF8(it->name), 1691 if (!frame->executeCommand(WebString::fromUTF8(it->name),
1691 WebString::fromUTF8(it->value))) 1692 WebString::fromUTF8(it->value)))
1692 break; 1693 break;
1693 did_execute_command = true; 1694 did_execute_command = true;
1694 } 1695 }
1695 1696
1696 return did_execute_command; 1697 return did_execute_command;
1697 } 1698 }
1698 1699
1700 WebKit::WebColorChooser* RenderViewImpl::createColorChooser(
1701 WebKit::WebColorChooserClient* client,
1702 const WebKit::WebColor& initial_color) {
1703 RendererWebColorChooserImpl* color_chooser =
1704 new RendererWebColorChooserImpl(this, client);
1705 color_chooser->Open(static_cast<SkColor>(initial_color));
1706 return color_chooser;
1707 }
1708
1699 bool RenderViewImpl::runFileChooser( 1709 bool RenderViewImpl::runFileChooser(
1700 const WebKit::WebFileChooserParams& params, 1710 const WebKit::WebFileChooserParams& params,
1701 WebFileChooserCompletion* chooser_completion) { 1711 WebFileChooserCompletion* chooser_completion) {
1702 // Do not open the file dialog in a hidden RenderView. 1712 // Do not open the file dialog in a hidden RenderView.
1703 if (is_hidden()) 1713 if (is_hidden())
1704 return false; 1714 return false;
1705 content::FileChooserParams ipc_params; 1715 content::FileChooserParams ipc_params;
1706 if (params.directory) 1716 if (params.directory)
1707 ipc_params.mode = content::FileChooserParams::OpenFolder; 1717 ipc_params.mode = content::FileChooserParams::OpenFolder;
1708 else if (params.multiSelect) 1718 else if (params.multiSelect)
(...skipping 3336 matching lines...) Expand 10 before | Expand all | Expand 10 after
5045 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const { 5055 bool RenderViewImpl::WebWidgetHandlesCompositorScheduling() const {
5046 return !!RenderThreadImpl::current()->compositor_thread(); 5056 return !!RenderThreadImpl::current()->compositor_thread();
5047 } 5057 }
5048 5058
5049 void RenderViewImpl::OnJavaBridgeInit() { 5059 void RenderViewImpl::OnJavaBridgeInit() {
5050 DCHECK(!java_bridge_dispatcher_.get()); 5060 DCHECK(!java_bridge_dispatcher_.get());
5051 #if defined(ENABLE_JAVA_BRIDGE) 5061 #if defined(ENABLE_JAVA_BRIDGE)
5052 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this)); 5062 java_bridge_dispatcher_.reset(new JavaBridgeDispatcher(this));
5053 #endif 5063 #endif
5054 } 5064 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698