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

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: added content::ColorChooser Created 8 years, 9 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 636 matching lines...) Expand 10 before | Expand all | Expand 10 after
647 647
648 void RenderViewHost::LostMouseLock() { 648 void RenderViewHost::LostMouseLock() {
649 RenderWidgetHostImpl::LostMouseLock(); 649 RenderWidgetHostImpl::LostMouseLock();
650 delegate_->LostMouseLock(); 650 delegate_->LostMouseLock();
651 } 651 }
652 652
653 void RenderViewHost::SetInitialFocus(bool reverse) { 653 void RenderViewHost::SetInitialFocus(bool reverse) {
654 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse)); 654 Send(new ViewMsg_SetInitialFocus(routing_id(), reverse));
655 } 655 }
656 656
657 void RenderViewHost::DidChooseColorInColorChooser(int color_chooser_id,
658 const SkColor& color) {
659 Send(new ViewMsg_DidChooseColorResponse(
660 routing_id(), color_chooser_id, color));
661 }
662
663 void RenderViewHost::DidEndColorChooser(int color_chooser_id) {
664 Send(new ViewMsg_DidEndColorChooser(routing_id(), color_chooser_id));
665 delegate_->DidEndColorChooser();
666 }
667
657 void RenderViewHost::FilesSelectedInChooser( 668 void RenderViewHost::FilesSelectedInChooser(
658 const std::vector<FilePath>& files, 669 const std::vector<FilePath>& files,
659 int permissions) { 670 int permissions) {
660 // Grant the security access requested to the given files. 671 // Grant the security access requested to the given files.
661 for (std::vector<FilePath>::const_iterator file = files.begin(); 672 for (std::vector<FilePath>::const_iterator file = files.begin();
662 file != files.end(); ++file) { 673 file != files.end(); ++file) {
663 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile( 674 ChildProcessSecurityPolicyImpl::GetInstance()->GrantPermissionsForFile(
664 process()->GetID(), *file, permissions); 675 process()->GetID(), *file, permissions);
665 } 676 }
666 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files)); 677 Send(new ViewMsg_RunFileChooserResponse(routing_id(), files));
(...skipping 933 matching lines...) Expand 10 before | Expand all | Expand 10 after
1600 // Whenever we change swap out state, we should not be waiting for 1611 // Whenever we change swap out state, we should not be waiting for
1601 // beforeunload or unload acks. We clear them here to be safe, since they 1612 // beforeunload or unload acks. We clear them here to be safe, since they
1602 // can cause navigations to be ignored in OnMsgNavigate. 1613 // can cause navigations to be ignored in OnMsgNavigate.
1603 is_waiting_for_beforeunload_ack_ = false; 1614 is_waiting_for_beforeunload_ack_ = false;
1604 is_waiting_for_unload_ack_ = false; 1615 is_waiting_for_unload_ack_ = false;
1605 } 1616 }
1606 1617
1607 void RenderViewHost::ClearPowerSaveBlockers() { 1618 void RenderViewHost::ClearPowerSaveBlockers() {
1608 STLDeleteValues(&power_save_blockers_); 1619 STLDeleteValues(&power_save_blockers_);
1609 } 1620 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698