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

Side by Side Diff: chrome/browser/ui/cocoa/web_intent_picker_cocoa.mm

Issue 10532162: Rename IPC Sender and Listener in ppapi, content/public, and content/renderer (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
Patch Set: Created 8 years, 6 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 "chrome/browser/ui/cocoa/web_intent_picker_cocoa.h" 5 #include "chrome/browser/ui/cocoa/web_intent_picker_cocoa.h"
6 6
7 #import <Cocoa/Cocoa.h> 7 #import <Cocoa/Cocoa.h>
8 8
9 #include "base/bind.h" 9 #include "base/bind.h"
10 #include "base/message_loop.h" 10 #include "base/message_loop.h"
11 #include "base/sys_string_conversions.h" 11 #include "base/sys_string_conversions.h"
12 #include "chrome/browser/profiles/profile.h" 12 #include "chrome/browser/profiles/profile.h"
13 #include "chrome/browser/tab_contents/tab_util.h" 13 #include "chrome/browser/tab_contents/tab_util.h"
14 #include "chrome/browser/ui/browser_window.h" 14 #include "chrome/browser/ui/browser_window.h"
15 #import "chrome/browser/ui/cocoa/browser_window_controller.h" 15 #import "chrome/browser/ui/cocoa/browser_window_controller.h"
16 #include "chrome/browser/ui/cocoa/constrained_window_mac.h" 16 #include "chrome/browser/ui/cocoa/constrained_window_mac.h"
17 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h" 17 #import "chrome/browser/ui/cocoa/location_bar/location_bar_view_mac.h"
18 #import "chrome/browser/ui/cocoa/web_intent_sheet_controller.h" 18 #import "chrome/browser/ui/cocoa/web_intent_sheet_controller.h"
19 #include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h" 19 #include "chrome/browser/ui/intents/web_intent_inline_disposition_delegate.h"
20 #include "chrome/browser/ui/intents/web_intent_picker.h" 20 #include "chrome/browser/ui/intents/web_intent_picker.h"
21 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h" 21 #include "chrome/browser/ui/intents/web_intent_picker_delegate.h"
22 #include "chrome/browser/ui/tab_contents/tab_contents.h" 22 #include "chrome/browser/ui/tab_contents/tab_contents.h"
23 #include "content/public/browser/web_contents.h" 23 #include "content/public/browser/web_contents.h"
24 #include "ipc/ipc_message.h"
24 #include "skia/ext/skia_utils_mac.h" 25 #include "skia/ext/skia_utils_mac.h"
25 #include "ui/gfx/image/image.h" 26 #include "ui/gfx/image/image.h"
26 27
27 using content::WebContents; 28 using content::WebContents;
28 29
29 namespace { 30 namespace {
30 31
31 // Since any delegates for constrained windows are tasked with deleting 32 // Since any delegates for constrained windows are tasked with deleting
32 // themselves, and the WebIntentPicker needs to live longer than the 33 // themselves, and the WebIntentPicker needs to live longer than the
33 // constrained window, we need this forwarding class. 34 // constrained window, we need this forwarding class.
(...skipping 188 matching lines...) Expand 10 before | Expand all | Expand 10 after
222 223
223 void WebIntentPickerCocoa::OnExtensionLinkClicked(const std::string& id) { 224 void WebIntentPickerCocoa::OnExtensionLinkClicked(const std::string& id) {
224 DCHECK(delegate_); 225 DCHECK(delegate_);
225 delegate_->OnExtensionLinkClicked(id); 226 delegate_->OnExtensionLinkClicked(id);
226 } 227 }
227 228
228 void WebIntentPickerCocoa::OnSuggestionsLinkClicked() { 229 void WebIntentPickerCocoa::OnSuggestionsLinkClicked() {
229 DCHECK(delegate_); 230 DCHECK(delegate_);
230 delegate_->OnSuggestionsLinkClicked(); 231 delegate_->OnSuggestionsLinkClicked();
231 } 232 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698