| OLD | NEW |
| 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 Loading... |
| 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 76 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 489 } | 484 } |
| 490 | 485 |
| 491 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, | 486 void PanelBrowserWindow::TabInsertedAt(TabContents* contents, |
| 492 int index, | 487 int index, |
| 493 bool foreground) { | 488 bool foreground) { |
| 494 if (panel_->auto_resizable()) { | 489 if (panel_->auto_resizable()) { |
| 495 DCHECK_EQ(0, index); | 490 DCHECK_EQ(0, index); |
| 496 panel_->EnableWebContentsAutoResize(contents->web_contents()); | 491 panel_->EnableWebContentsAutoResize(contents->web_contents()); |
| 497 } | 492 } |
| 498 } | 493 } |
| OLD | NEW |