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

Unified Diff: chrome/browser/chromeos/frame/panel_browser_view.cc

Issue 8511048: Addressed or cleaned-up a number of TODOs. (Closed) Base URL: http://git.chromium.org/chromium/src.git@master
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/chromeos/frame/panel_browser_view.cc
diff --git a/chrome/browser/chromeos/frame/panel_browser_view.cc b/chrome/browser/chromeos/frame/panel_browser_view.cc
index 47a7d1b7129d18d414372b41ec9b5a5d213498c5..de39b0e8d2715e2698a12db5b259f4110e56cb1f 100644
--- a/chrome/browser/chromeos/frame/panel_browser_view.cc
+++ b/chrome/browser/chromeos/frame/panel_browser_view.cc
@@ -33,9 +33,6 @@ PanelBrowserView::~PanelBrowserView() {}
// PanelBrowserView functions
void PanelBrowserView::LimitBounds(gfx::Rect* bounds) const {
-#if defined(USE_AURA)
- // TODO(saintlou): Need PureViews
-#else
GdkScreen* screen = gtk_widget_get_screen(GetWidget()->GetNativeView());
int max_width = gdk_screen_get_width(screen) * kPanelMaxWidthFactor;
int max_height = gdk_screen_get_height(screen) * kPanelMaxHeightFactor;
@@ -54,7 +51,6 @@ void PanelBrowserView::LimitBounds(gfx::Rect* bounds) const {
bounds->set_height(kPanelMinHeightPixels);
else if (bounds->height() > max_height)
bounds->set_height(max_height);
-#endif
}
@@ -105,12 +101,8 @@ void PanelBrowserView::UpdateTitleBar() {
void PanelBrowserView::SetCreatorView(PanelBrowserView* creator) {
DCHECK(creator);
-#if defined(USE_AURA)
- // TODO(saintlou): Need PureViews
-#else
GtkWindow* window = creator->GetNativeHandle();
creator_xid_ = ui::GetX11WindowFromGtkWidget(GTK_WIDGET(window));
-#endif
}
WindowOpenDisposition PanelBrowserView::GetDispositionForPopupBounds(
« no previous file with comments | « no previous file | chrome/browser/chromeos/system_key_event_listener.cc » ('j') | chrome/browser/ui/views/stubs_aura.cc » ('J')

Powered by Google App Engine
This is Rietveld 408576698