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

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

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: fixed issues/removed color_select_helper/added color_chooser_id 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/browser/renderer_host/render_view_host.h" 5 #include "content/browser/renderer_host/render_view_host.h"
6 6
7 #include <set> 7 #include <set>
8 #include <string> 8 #include <string>
9 #include <utility> 9 #include <utility>
10 #include <vector> 10 #include <vector>
(...skipping 625 matching lines...) Expand 10 before | Expand all | Expand 10 after
636 636
637 void RenderViewHost::LostMouseLock() { 637 void RenderViewHost::LostMouseLock() {
638 RenderWidgetHost::LostMouseLock(); 638 RenderWidgetHost::LostMouseLock();
639 delegate_->LostMouseLock(); 639 delegate_->LostMouseLock();
640 } 640 }
641 641
642 void RenderViewHost::SetInitialFocus(bool reverse) { 642 void RenderViewHost::SetInitialFocus(bool reverse) {
643 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); 643 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
644 } 644 }
645 645
646 void RenderViewHost::DidChooseColorInColorChooser(unsigned color_chooser_id,
647 const SkColor& color) {
648 Send(new ViewMsg_DidChooseColorResponse(routing_id(), color_chooser_id,
649 color));
650 }
651
652 void RenderViewHost::DidEndColorChooser(unsigned color_chooser_id) {
653 Send(new ViewMsg_DidEndColorChooser(routing_id(), color_chooser_id));
654 delegate_->DidEndColorChooser();
655 }
656
646 void RenderViewHost::FilesSelectedInChooser( 657 void RenderViewHost::FilesSelectedInChooser(
647 const std::vector<FilePath>& files, 658 const std::vector<FilePath>& files,
648 int permissions) { 659 int permissions) {
649 // Grant the security access requested to the given files. 660 // Grant the security access requested to the given files.
650 for (std::vector<FilePath>::const_iterator file = files.begin(); 661 for (std::vector<FilePath>::const_iterator file = files.begin();
651 file != files.end(); ++file) { 662 file != files.end(); ++file) {
652 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile( 663 ChildProcessSecurityPolicy::GetInstance()->GrantPermissionsForFile(
653 process()->GetID(), *file, permissions); 664 process()->GetID(), *file, permissions);
654 } 665 }
655 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); 666 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files));
(...skipping 912 matching lines...) Expand 10 before | Expand all | Expand 10 after
1568 DomOperationNotificationDetails details(json_string, automation_id); 1579 DomOperationNotificationDetails details(json_string, automation_id);
1569 content::NotificationService::current()->Notify( 1580 content::NotificationService::current()->Notify(
1570 content::NOTIFICATION_DOM_OPERATION_RESPONSE, 1581 content::NOTIFICATION_DOM_OPERATION_RESPONSE,
1571 content::Source<RenderViewHost>(this), 1582 content::Source<RenderViewHost>(this),
1572 content::Details<DomOperationNotificationDetails>(&details)); 1583 content::Details<DomOperationNotificationDetails>(&details));
1573 } 1584 }
1574 1585
1575 void RenderViewHost::ClearPowerSaveBlockers() { 1586 void RenderViewHost::ClearPowerSaveBlockers() {
1576 STLDeleteValues(&power_save_blockers_); 1587 STLDeleteValues(&power_save_blockers_);
1577 } 1588 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698