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

Side by Side Diff: chrome/browser/guest_view/extension_options/extension_options_guest.cc

Issue 517593002: ExtensionOptionsGuest: Fixed spacing (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: Created 6 years, 3 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 | « no previous file | no next file » | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 // Copyright 2014 The Chromium Authors. All rights reserved. 1 // Copyright 2014 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/guest_view/extension_options/extension_options_guest.h" 5 #include "chrome/browser/guest_view/extension_options/extension_options_guest.h"
6 6
7 #include "base/values.h" 7 #include "base/values.h"
8 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h" 8 #include "chrome/browser/extensions/chrome_extension_web_contents_observer.h"
9 #include "chrome/browser/extensions/extension_tab_util.h" 9 #include "chrome/browser/extensions/extension_tab_util.h"
10 #include "chrome/browser/guest_view/extension_options/extension_options_constant s.h" 10 #include "chrome/browser/guest_view/extension_options/extension_options_constant s.h"
(...skipping 114 matching lines...) Expand 10 before | Expand all | Expand 10 after
125 DispatchEventToEmbedder(new extensions::GuestViewBase::Event( 125 DispatchEventToEmbedder(new extensions::GuestViewBase::Event(
126 extensions::api::extension_options_internal::OnLoad::kEventName, 126 extensions::api::extension_options_internal::OnLoad::kEventName,
127 args.Pass())); 127 args.Pass()));
128 } 128 }
129 129
130 const char* ExtensionOptionsGuest::GetAPINamespace() const { 130 const char* ExtensionOptionsGuest::GetAPINamespace() const {
131 return extensionoptions::kAPINamespace; 131 return extensionoptions::kAPINamespace;
132 } 132 }
133 133
134 int ExtensionOptionsGuest::GetTaskPrefix() const { 134 int ExtensionOptionsGuest::GetTaskPrefix() const {
135 return IDS_EXTENSION_TASK_MANAGER_EXTENSIONOPTIONS_TAG_PREFIX; 135 return IDS_EXTENSION_TASK_MANAGER_EXTENSIONOPTIONS_TAG_PREFIX;
136 } 136 }
137 137
138 content::WebContents* ExtensionOptionsGuest::GetAssociatedWebContents() const { 138 content::WebContents* ExtensionOptionsGuest::GetAssociatedWebContents() const {
139 return guest_web_contents(); 139 return guest_web_contents();
140 } 140 }
141 141
142 bool ExtensionOptionsGuest::OnMessageReceived(const IPC::Message& message) { 142 bool ExtensionOptionsGuest::OnMessageReceived(const IPC::Message& message) {
143 bool handled = true; 143 bool handled = true;
144 IPC_BEGIN_MESSAGE_MAP(ExtensionOptionsGuest, message) 144 IPC_BEGIN_MESSAGE_MAP(ExtensionOptionsGuest, message)
145 IPC_MESSAGE_HANDLER(ExtensionHostMsg_Request, OnRequest) 145 IPC_MESSAGE_HANDLER(ExtensionHostMsg_Request, OnRequest)
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
230 content::OpenURLParams params(target_url, 230 content::OpenURLParams params(target_url,
231 content::Referrer(), 231 content::Referrer(),
232 NEW_FOREGROUND_TAB, 232 NEW_FOREGROUND_TAB,
233 content::PAGE_TRANSITION_LINK, 233 content::PAGE_TRANSITION_LINK,
234 false); 234 false);
235 browser->OpenURL(params); 235 browser->OpenURL(params);
236 // TODO(ericzeng): Open the tab in the background if the click was a 236 // TODO(ericzeng): Open the tab in the background if the click was a
237 // ctrl-click or middle mouse button click 237 // ctrl-click or middle mouse button click
238 return false; 238 return false;
239 } 239 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698