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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window.cc

Issue 10699057: Move application creation and extension install prompt showing off Browser and onto ExtensionTabHel… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src/
Patch Set: Created 8 years, 5 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 | Annotate | Revision Log
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/panels/panel_browser_window.h" 5 #include "chrome/browser/ui/panels/panel_browser_window.h"
6 6
7 #include "base/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_commands.h" 9 #include "chrome/browser/ui/browser_commands.h"
10 #include "chrome/browser/ui/browser_finder.h" 10 #include "chrome/browser/ui/browser_finder.h"
(...skipping 377 matching lines...) Expand 10 before | Expand all | Expand 10 after
388 bool* is_keyboard_shortcut) { 388 bool* is_keyboard_shortcut) {
389 return native_panel_->PreHandlePanelKeyboardEvent(event, 389 return native_panel_->PreHandlePanelKeyboardEvent(event,
390 is_keyboard_shortcut); 390 is_keyboard_shortcut);
391 } 391 }
392 392
393 void PanelBrowserWindow::HandleKeyboardEvent( 393 void PanelBrowserWindow::HandleKeyboardEvent(
394 const content::NativeWebKeyboardEvent& event) { 394 const content::NativeWebKeyboardEvent& event) {
395 native_panel_->HandlePanelKeyboardEvent(event); 395 native_panel_->HandlePanelKeyboardEvent(event);
396 } 396 }
397 397
398 void PanelBrowserWindow::ShowCreateWebAppShortcutsDialog(
399 TabContents* tab_contents) {
400 NOTIMPLEMENTED();
401 }
402
403 void PanelBrowserWindow::ShowCreateChromeAppShortcutsDialog( 398 void PanelBrowserWindow::ShowCreateChromeAppShortcutsDialog(
404 Profile* profile, 399 Profile* profile,
405 const extensions::Extension* app) { 400 const extensions::Extension* app) {
406 NOTIMPLEMENTED(); 401 NOTIMPLEMENTED();
407 } 402 }
408 403
409 void PanelBrowserWindow::Cut() { 404 void PanelBrowserWindow::Cut() {
410 native_panel_->PanelCut(); 405 native_panel_->PanelCut();
411 } 406 }
412 407
(...skipping 77 matching lines...) Expand 10 before | Expand all | Expand 10 after
490 } 485 }
491 486
492 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, 487 void PanelBrowserWindow::TabInsertedAt(TabContents* contents,
493 int index, 488 int index,
494 bool foreground) { 489 bool foreground) {
495 if (panel_->auto_resizable()) { 490 if (panel_->auto_resizable()) {
496 DCHECK_EQ(0, index); 491 DCHECK_EQ(0, index);
497 panel_->EnableWebContentsAutoResize(contents->web_contents()); 492 panel_->EnableWebContentsAutoResize(contents->web_contents());
498 } 493 }
499 } 494 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698