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

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

Issue 10260028: Update Panel mininimize/restore button on strip and expansion state change. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: feedback changes Created 8 years, 8 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 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 6d372814b99b4c35ec4fe871d2f0fc1df7e90b31..9c279dc1e1a67f562a8929187c8a9c3396ef3b1b 100644
--- a/chrome/browser/ui/panels/panel_browser_view.cc
+++ b/chrome/browser/ui/panels/panel_browser_view.cc
@@ -513,25 +513,6 @@ bool PanelBrowserView::EndDragging(bool cancelled) {
return true;
}
-void PanelBrowserView::SetPanelAppIconVisibility(bool visible) {
-#if defined(OS_WIN) && !defined(USE_AURA)
- gfx::NativeWindow native_window = GetNativeHandle();
- int style = ::GetWindowLong(native_window, GWL_EXSTYLE);
- int new_style = style;
- if (visible)
- new_style &= (~WS_EX_TOOLWINDOW);
- else
- new_style |= WS_EX_TOOLWINDOW;
- if (style != new_style) {
- ::ShowWindow(native_window, SW_HIDE);
- ::SetWindowLong(native_window, GWL_EXSTYLE, new_style);
- ::ShowWindow(native_window, SW_SHOWNA);
- }
-#else
- NOTIMPLEMENTED();
-#endif
-}
-
void PanelBrowserView::SetPanelAlwaysOnTop(bool on_top) {
GetWidget()->SetAlwaysOnTop(on_top);
GetWidget()->non_client_view()->Layout();
@@ -545,6 +526,11 @@ bool PanelBrowserView::IsAnimatingBounds() const {
void PanelBrowserView::EnableResizeByMouse(bool enable) {
}
+void PanelBrowserView::UpdatePanelMinimizeRestoreButtonVisibility() {
+ GetFrameView()->UpdateTitleBarMinimizeRestoreButtonVisibility();
+}
+
+
#if defined(OS_WIN) && !defined(USE_AURA)
void PanelBrowserView::UpdateWindowAttribute(int attribute_index,
int attribute_value,
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_view.h ('k') | chrome/browser/ui/panels/panel_browser_window_cocoa.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698