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

Side by Side Diff: chrome/browser/chromeos/frame/panel_browser_view.cc

Issue 6247002: chromeos: Run beforeunload handlers when closing panels. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 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 | Annotate | Revision Log
OLDNEW
1 // Copyright (c) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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/chromeos/frame/panel_browser_view.h" 5 #include "chrome/browser/chromeos/frame/panel_browser_view.h"
6 6
7 #include "chrome/browser/chromeos/frame/panel_controller.h" 7 #include "chrome/browser/chromeos/frame/panel_controller.h"
8 #include "third_party/cros/chromeos_wm_ipc_enums.h" 8 #include "third_party/cros/chromeos_wm_ipc_enums.h"
9 #include "views/widget/widget.h" 9 #include "views/widget/widget.h"
10 #include "views/window/window.h" 10 #include "views/window/window.h"
(...skipping 99 matching lines...) Expand 10 before | Expand all | Expand 10 after
110 // PanelController::Delegate overrides. 110 // PanelController::Delegate overrides.
111 111
112 string16 PanelBrowserView::GetPanelTitle() { 112 string16 PanelBrowserView::GetPanelTitle() {
113 return browser()->GetWindowTitleForCurrentTab(); 113 return browser()->GetWindowTitleForCurrentTab();
114 } 114 }
115 115
116 SkBitmap PanelBrowserView::GetPanelIcon() { 116 SkBitmap PanelBrowserView::GetPanelIcon() {
117 return browser()->GetCurrentPageIcon(); 117 return browser()->GetCurrentPageIcon();
118 } 118 }
119 119
120 bool PanelBrowserView::CanClosePanel() {
121 return ::BrowserView::CanClose();
122 }
123
120 void PanelBrowserView::ClosePanel() { 124 void PanelBrowserView::ClosePanel() {
121 Close(); 125 Close();
122 } 126 }
123 127
124 } // namespace chromeos 128 } // namespace chromeos
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698