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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_window_cocoa.mm

Issue 10408047: Fix bug 105043: Panels [WIN]: For minimize panels, taskbar hover preview show the 4-pixel represent… (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 8 years, 7 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) 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_cocoa.h" 5 #include "chrome/browser/ui/panels/panel_browser_window_cocoa.h"
6 6
7 #include "base/auto_reset.h" 7 #include "base/auto_reset.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "chrome/browser/ui/browser.h" 9 #include "chrome/browser/ui/browser.h"
10 #include "chrome/browser/ui/browser_list.h" 10 #include "chrome/browser/ui/browser_list.h"
(...skipping 335 matching lines...) Expand 10 before | Expand all | Expand 10 after
346 } 346 }
347 347
348 void PanelBrowserWindowCocoa::Observe( 348 void PanelBrowserWindowCocoa::Observe(
349 int type, 349 int type,
350 const content::NotificationSource& source, 350 const content::NotificationSource& source,
351 const content::NotificationDetails& details) { 351 const content::NotificationDetails& details) {
352 DCHECK_EQ(chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, type); 352 DCHECK_EQ(chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, type);
353 [controller_ updateWindowLevel]; 353 [controller_ updateWindowLevel];
354 } 354 }
355 355
356 void PanelBrowserWindowCocoa::PanelExpansionStateChanging(
357 Panel::ExpansionState old_state, Panel::ExpansionState new_state) {
358 }
359
356 // NativePanelTesting implementation. 360 // NativePanelTesting implementation.
357 class NativePanelTestingCocoa : public NativePanelTesting { 361 class NativePanelTestingCocoa : public NativePanelTesting {
358 public: 362 public:
359 NativePanelTestingCocoa(NativePanel* native_panel); 363 NativePanelTestingCocoa(NativePanel* native_panel);
360 virtual ~NativePanelTestingCocoa() { } 364 virtual ~NativePanelTestingCocoa() { }
361 // Overridden from NativePanelTesting 365 // Overridden from NativePanelTesting
362 virtual void PressLeftMouseButtonTitlebar( 366 virtual void PressLeftMouseButtonTitlebar(
363 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; 367 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
364 virtual void ReleaseMouseButtonTitlebar( 368 virtual void ReleaseMouseButtonTitlebar(
365 panel::ClickModifier modifier) OVERRIDE; 369 panel::ClickModifier modifier) OVERRIDE;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
450 return ![[titlebar() closeButton] isHidden]; 454 return ![[titlebar() closeButton] isHidden];
451 case MINIMIZE_BUTTON: 455 case MINIMIZE_BUTTON:
452 return ![[titlebar() minimizeButton] isHidden]; 456 return ![[titlebar() minimizeButton] isHidden];
453 case RESTORE_BUTTON: 457 case RESTORE_BUTTON:
454 return ![[titlebar() restoreButton] isHidden]; 458 return ![[titlebar() restoreButton] isHidden];
455 default: 459 default:
456 NOTREACHED(); 460 NOTREACHED();
457 } 461 }
458 return false; 462 return false;
459 } 463 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698