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

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: Fix win_aura 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 336 matching lines...) Expand 10 before | Expand all | Expand 10 after
347 } 347 }
348 348
349 void PanelBrowserWindowCocoa::Observe( 349 void PanelBrowserWindowCocoa::Observe(
350 int type, 350 int type,
351 const content::NotificationSource& source, 351 const content::NotificationSource& source,
352 const content::NotificationDetails& details) { 352 const content::NotificationDetails& details) {
353 DCHECK_EQ(chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, type); 353 DCHECK_EQ(chrome::NOTIFICATION_PANEL_CHANGED_EXPANSION_STATE, type);
354 [controller_ updateWindowLevel]; 354 [controller_ updateWindowLevel];
355 } 355 }
356 356
357 void PanelBrowserWindowCocoa::PanelExpansionStateChanging(
358 Panel::ExpansionState old_state, Panel::ExpansionState new_state) {
359 }
360
357 // NativePanelTesting implementation. 361 // NativePanelTesting implementation.
358 class NativePanelTestingCocoa : public NativePanelTesting { 362 class NativePanelTestingCocoa : public NativePanelTesting {
359 public: 363 public:
360 NativePanelTestingCocoa(NativePanel* native_panel); 364 NativePanelTestingCocoa(NativePanel* native_panel);
361 virtual ~NativePanelTestingCocoa() { } 365 virtual ~NativePanelTestingCocoa() { }
362 // Overridden from NativePanelTesting 366 // Overridden from NativePanelTesting
363 virtual void PressLeftMouseButtonTitlebar( 367 virtual void PressLeftMouseButtonTitlebar(
364 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE; 368 const gfx::Point& mouse_location, panel::ClickModifier modifier) OVERRIDE;
365 virtual void ReleaseMouseButtonTitlebar( 369 virtual void ReleaseMouseButtonTitlebar(
366 panel::ClickModifier modifier) OVERRIDE; 370 panel::ClickModifier modifier) OVERRIDE;
(...skipping 84 matching lines...) Expand 10 before | Expand all | Expand 10 after
451 return ![[titlebar() closeButton] isHidden]; 455 return ![[titlebar() closeButton] isHidden];
452 case MINIMIZE_BUTTON: 456 case MINIMIZE_BUTTON:
453 return ![[titlebar() minimizeButton] isHidden]; 457 return ![[titlebar() minimizeButton] isHidden];
454 case RESTORE_BUTTON: 458 case RESTORE_BUTTON:
455 return ![[titlebar() restoreButton] isHidden]; 459 return ![[titlebar() restoreButton] isHidden];
456 default: 460 default:
457 NOTREACHED(); 461 NOTREACHED();
458 } 462 }
459 return false; 463 return false;
460 } 464 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel_browser_window_cocoa.h ('k') | chrome/browser/ui/panels/panel_browser_window_gtk.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698