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

Unified Diff: chrome/browser/ui/panels/panel_browser_view.cc

Issue 8423060: Classification of TODOs in Panel code. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 side-by-side diff with in-line comments
Download patch
Index: chrome/browser/ui/panels/panel_browser_view.cc
diff --git a/chrome/browser/ui/panels/panel_browser_view.cc b/chrome/browser/ui/panels/panel_browser_view.cc
index de26f11cd2a80ebf9fd86658f0f8e7714df63f37..ba40254f6305df8da45ea5c4f565a6404a346500 100644
--- a/chrome/browser/ui/panels/panel_browser_view.cc
+++ b/chrome/browser/ui/panels/panel_browser_view.cc
@@ -93,7 +93,8 @@ void PanelBrowserView::Deactivate() {
else
::SetFocus(NULL);
#else
- // TODO(jianli): to be implemented for other platform.
+ // TODO(jianli): Implement for USE_AURA.
Dmitry Titov 2011/11/02 22:15:01 Didn't want a bug for this, maybe we shoudl just r
jennb 2011/11/02 22:25:31 Agree w/ removing TODO.
Dmitry Titov 2011/11/02 23:32:19 Done.
+ NOTIMPLEMENTED();
BrowserView::Deactivate();
#endif
}
@@ -147,7 +148,7 @@ void PanelBrowserView::OnWidgetActivationChanged(views::Widget* widget,
::BrowserView::OnWidgetActivationChanged(widget, active);
#if defined(USE_AURA)
- // TODO(beng):
+ // TODO(beng): Implement for USE_AURA.
NOTIMPLEMENTED();
bool focused = active;
#elif defined(OS_WIN)
@@ -156,7 +157,7 @@ void PanelBrowserView::OnWidgetActivationChanged(views::Widget* widget,
bool focused = active &&
GetFrameView()->GetWidget()->GetNativeView() == ::GetForegroundWindow();
#else
- // TODO(jianli): Investigate focus behavior for ChromeOS
+ NOTREACHED(); // View-based Panels are not enabled anywhere else.
jennb 2011/11/02 22:25:31 Can we delete the #else clause completely and conv
Dmitry Titov 2011/11/02 23:32:19 Done. Made it consistent with the case in Deactiva
bool focused = active;
#endif
@@ -511,7 +512,7 @@ void NativePanelTestingWin::ReleaseMouseButtonTitlebar() {
void NativePanelTestingWin::DragTitlebar(int delta_x, int delta_y) {
// TODO(jianli): Need a comment here that explains why we use
// mouse_pressed_point_ and not current bounds as obtained by
- // GetRestoredBounds().
+ // GetRestoredBounds(). http://crbug.com/102730
panel_browser_view_->OnTitlebarMouseDragged(gfx::Point(
panel_browser_view_->mouse_pressed_point_.x() + delta_x,
panel_browser_view_->mouse_pressed_point_.y() + delta_y));

Powered by Google App Engine
This is Rietveld 408576698