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

Side by Side Diff: content/public/browser/web_contents_delegate.cc

Issue 9203001: Implement input type=color UI (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: rebased 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
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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/public/browser/web_contents_delegate.h" 5 #include "content/public/browser/web_contents_delegate.h"
6 6
7 #include "base/compiler_specific.h" 7 #include "base/compiler_specific.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/memory/singleton.h" 9 #include "base/memory/singleton.h"
10 #include "content/public/browser/render_view_host.h" 10 #include "content/public/browser/render_view_host.h"
(...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after
127 } 127 }
128 128
129 JavaScriptDialogCreator* WebContentsDelegate::GetJavaScriptDialogCreator() { 129 JavaScriptDialogCreator* WebContentsDelegate::GetJavaScriptDialogCreator() {
130 return NULL; 130 return NULL;
131 } 131 }
132 132
133 bool WebContentsDelegate::IsFullscreenForTab(const WebContents* tab) const { 133 bool WebContentsDelegate::IsFullscreenForTab(const WebContents* tab) const {
134 return false; 134 return false;
135 } 135 }
136 136
137 content::ColorChooser* WebContentsDelegate::OpenColorChooser(WebContents* tab,
138 int color_chooser_id,
139 const SkColor& color) {
140 return NULL;
141 }
142
137 void WebContentsDelegate::WebIntentDispatch( 143 void WebContentsDelegate::WebIntentDispatch(
138 WebContents* tab, 144 WebContents* tab,
139 WebIntentsDispatcher* intents_dispatcher) { 145 WebIntentsDispatcher* intents_dispatcher) {
140 // The caller passes this method ownership of the |intents_dispatcher|, but 146 // The caller passes this method ownership of the |intents_dispatcher|, but
141 // this empty implementation will not use it, so we delete it immediately. 147 // this empty implementation will not use it, so we delete it immediately.
142 delete intents_dispatcher; 148 delete intents_dispatcher;
143 } 149 }
144 150
145 WebContentsDelegate::~WebContentsDelegate() { 151 WebContentsDelegate::~WebContentsDelegate() {
146 while (!attached_contents_.empty()) { 152 while (!attached_contents_.empty()) {
147 WebContents* web_contents = *attached_contents_.begin(); 153 WebContents* web_contents = *attached_contents_.begin();
148 web_contents->SetDelegate(NULL); 154 web_contents->SetDelegate(NULL);
149 } 155 }
150 DCHECK(attached_contents_.empty()); 156 DCHECK(attached_contents_.empty());
151 } 157 }
152 158
153 void WebContentsDelegate::Attach(WebContents* web_contents) { 159 void WebContentsDelegate::Attach(WebContents* web_contents) {
154 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end()); 160 DCHECK(attached_contents_.find(web_contents) == attached_contents_.end());
155 attached_contents_.insert(web_contents); 161 attached_contents_.insert(web_contents);
156 } 162 }
157 163
158 void WebContentsDelegate::Detach(WebContents* web_contents) { 164 void WebContentsDelegate::Detach(WebContents* web_contents) {
159 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end()); 165 DCHECK(attached_contents_.find(web_contents) != attached_contents_.end());
160 attached_contents_.erase(web_contents); 166 attached_contents_.erase(web_contents);
161 } 167 }
162 168
163 } // namespace content 169 } // namespace content
OLDNEW
« no previous file with comments | « content/public/browser/web_contents_delegate.h ('k') | content/renderer/render_view_impl.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698