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

Side by Side Diff: content/browser/renderer_host/render_view_host.cc

Issue 7685006: Implement input type=color UI (common part) (Closed) Base URL: http://git.chromium.org/git/chromium.git@trunk
Patch Set: forgot to turn off flag Created 9 years, 1 month 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <string> 7 #include <string>
8 #include <utility> 8 #include <utility>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 583 matching lines...) Expand 10 before | Expand all | Expand 10 after
594 594
595 void RenderViewHost::LostMouseLock() { 595 void RenderViewHost::LostMouseLock() {
596 RenderWidgetHost::LostMouseLock(); 596 RenderWidgetHost::LostMouseLock();
597 delegate_->LostMouseLock(); 597 delegate_->LostMouseLock();
598 } 598 }
599 599
600 void RenderViewHost::SetInitialFocus(bool reverse) { 600 void RenderViewHost::SetInitialFocus(bool reverse) {
601 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); 601 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
602 } 602 }
603 603
604 #if defined(ENABLE_INPUT_COLOR)
605 void RenderViewHost::DidChooseColorInColorChooser(WebKit::WebColor color) {
606 Send(new ViewMsg_DidChooseColorResponse(routing_id(), color));
607 }
608 void RenderViewHost::DidCleanupColorChooser() {
609 Send(new ViewMsg_DidCleanupColorChooser(routing_id()));
610 }
611 #endif // defined(ENABLE_INPUT_COLOR)
612
604 void RenderViewHost::FilesSelectedInChooser( 613 void RenderViewHost::FilesSelectedInChooser(
605 const std::vector<FilePath>& files, 614 const std::vector<FilePath>& files,
606 int permissions) { 615 int permissions) {
607 // Grant the security access requested to the given files. 616 // Grant the security access requested to the given files.
608 for (std::vector<FilePath>::const_iterator file = files.begin(); 617 for (std::vector<FilePath>::const_iterator file = files.begin();
609 file != files.end(); ++file) { 618 file != files.end(); ++file) {
610 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile( 619 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile(
611 process()->id(), *file, permissions); 620 process()->id(), *file, permissions);
612 } 621 }
613 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); 622 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files));
(...skipping 883 matching lines...) Expand 10 before | Expand all | Expand 10 after
1497 1506
1498 void RenderViewHost::OnWebUISend(const GURL& source_url, 1507 void RenderViewHost::OnWebUISend(const GURL& source_url,
1499 const std::string& name, 1508 const std::string& name,
1500 const base::ListValue& args) { 1509 const base::ListValue& args) {
1501 delegate_->WebUISend(this, source_url, name, args); 1510 delegate_->WebUISend(this, source_url, name, args);
1502 } 1511 }
1503 1512
1504 void RenderViewHost::ClearPowerSaveBlockers() { 1513 void RenderViewHost::ClearPowerSaveBlockers() {
1505 STLDeleteValues(&power_save_blockers_); 1514 STLDeleteValues(&power_save_blockers_);
1506 } 1515 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698