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

Side by Side Diff: chrome/browser/extensions/chrome_extensions_browser_client.cc

Issue 1550983003: Give the ChromeVox Panel an extension view type. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: VIEW_TYPE_COMPONENT Created 4 years, 11 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 2013 The Chromium Authors. All rights reserved. 1 // Copyright 2013 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/extensions/chrome_extensions_browser_client.h" 5 #include "chrome/browser/extensions/chrome_extensions_browser_client.h"
6 6
7 #include <utility> 7 #include <utility>
8 8
9 #include "base/command_line.h" 9 #include "base/command_line.h"
10 #include "base/version.h" 10 #include "base/version.h"
(...skipping 340 matching lines...) Expand 10 before | Expand all | Expand 10 after
351 MenuManager::Get(Profile::FromBrowserContext(browser_context)); 351 MenuManager::Get(Profile::FromBrowserContext(browser_context));
352 menu_manager->RemoveAllContextItems( 352 menu_manager->RemoveAllContextItems(
353 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id)); 353 MenuItem::ExtensionKey("", embedder_process_id, view_instance_id));
354 } 354 }
355 355
356 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag( 356 void ChromeExtensionsBrowserClient::AttachExtensionTaskManagerTag(
357 content::WebContents* web_contents, 357 content::WebContents* web_contents,
358 ViewType view_type) { 358 ViewType view_type) {
359 switch (view_type) { 359 switch (view_type) {
360 case VIEW_TYPE_APP_WINDOW: 360 case VIEW_TYPE_APP_WINDOW:
361 case VIEW_TYPE_COMPONENT:
361 case VIEW_TYPE_EXTENSION_BACKGROUND_PAGE: 362 case VIEW_TYPE_EXTENSION_BACKGROUND_PAGE:
362 case VIEW_TYPE_EXTENSION_DIALOG: 363 case VIEW_TYPE_EXTENSION_DIALOG:
363 case VIEW_TYPE_EXTENSION_POPUP: 364 case VIEW_TYPE_EXTENSION_POPUP:
364 case VIEW_TYPE_LAUNCHER_PAGE: 365 case VIEW_TYPE_LAUNCHER_PAGE:
365 case VIEW_TYPE_VIRTUAL_KEYBOARD:
366 // These are the only types that are tracked by the ExtensionTag. 366 // These are the only types that are tracked by the ExtensionTag.
367 task_management::WebContentsTags::CreateForExtension(web_contents, 367 task_management::WebContentsTags::CreateForExtension(web_contents,
368 view_type); 368 view_type);
369 return; 369 return;
370 370
371 case VIEW_TYPE_BACKGROUND_CONTENTS: 371 case VIEW_TYPE_BACKGROUND_CONTENTS:
372 case VIEW_TYPE_EXTENSION_GUEST: 372 case VIEW_TYPE_EXTENSION_GUEST:
373 case VIEW_TYPE_PANEL: 373 case VIEW_TYPE_PANEL:
374 case VIEW_TYPE_TAB_CONTENTS: 374 case VIEW_TYPE_TAB_CONTENTS:
375 // Those types are tracked by other tags: 375 // Those types are tracked by other tags:
(...skipping 12 matching lines...) Expand all
388 } 388 }
389 389
390 scoped_refptr<update_client::UpdateClient> 390 scoped_refptr<update_client::UpdateClient>
391 ChromeExtensionsBrowserClient::CreateUpdateClient( 391 ChromeExtensionsBrowserClient::CreateUpdateClient(
392 content::BrowserContext* context) { 392 content::BrowserContext* context) {
393 return update_client::UpdateClientFactory( 393 return update_client::UpdateClientFactory(
394 make_scoped_refptr(new ChromeUpdateClientConfig(context))); 394 make_scoped_refptr(new ChromeUpdateClientConfig(context)));
395 } 395 }
396 396
397 } // namespace extensions 397 } // namespace extensions
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698