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

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

Issue 8183005: Choose the right window to switch to when a panel is deactivated on Windows. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 9 years, 2 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) 2011 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2011 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/logging.h" 7 #include "base/logging.h"
8 #include "chrome/browser/ui/browser.h" 8 #include "chrome/browser/ui/browser.h"
9 #include "chrome/browser/ui/browser_list.h" 9 #include "chrome/browser/ui/browser_list.h"
10 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h" 10 #include "chrome/browser/ui/cocoa/find_bar/find_bar_bridge.h"
(...skipping 264 matching lines...) Expand 10 before | Expand all | Expand 10 after
275 public: 275 public:
276 NativePanelTestingCocoa(NativePanel* native_panel); 276 NativePanelTestingCocoa(NativePanel* native_panel);
277 virtual ~NativePanelTestingCocoa() { } 277 virtual ~NativePanelTestingCocoa() { }
278 // Overridden from NativePanelTesting 278 // Overridden from NativePanelTesting
279 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) OVERRIDE; 279 virtual void PressLeftMouseButtonTitlebar(const gfx::Point& point) OVERRIDE;
280 virtual void ReleaseMouseButtonTitlebar() OVERRIDE; 280 virtual void ReleaseMouseButtonTitlebar() OVERRIDE;
281 virtual void DragTitlebar(int delta_x, int delta_y) OVERRIDE; 281 virtual void DragTitlebar(int delta_x, int delta_y) OVERRIDE;
282 virtual void CancelDragTitlebar() OVERRIDE; 282 virtual void CancelDragTitlebar() OVERRIDE;
283 virtual void FinishDragTitlebar() OVERRIDE; 283 virtual void FinishDragTitlebar() OVERRIDE;
284 virtual bool VerifyDrawingAttention() const OVERRIDE; 284 virtual bool VerifyDrawingAttention() const OVERRIDE;
285 virtual bool VerifyTitlebarPaintedAsActive(bool as_active) OVERRIDE;
285 286
286 private: 287 private:
287 PanelTitlebarViewCocoa* titlebar() const; 288 PanelTitlebarViewCocoa* titlebar() const;
288 // Weak, assumed always to outlive this test API object. 289 // Weak, assumed always to outlive this test API object.
289 PanelBrowserWindowCocoa* native_panel_window_; 290 PanelBrowserWindowCocoa* native_panel_window_;
290 }; 291 };
291 292
292 // static 293 // static
293 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) { 294 NativePanelTesting* NativePanelTesting::Create(NativePanel* native_panel) {
294 return new NativePanelTestingCocoa(native_panel); 295 return new NativePanelTestingCocoa(native_panel);
(...skipping 25 matching lines...) Expand all
320 } 321 }
321 322
322 void NativePanelTestingCocoa::FinishDragTitlebar() { 323 void NativePanelTestingCocoa::FinishDragTitlebar() {
323 [titlebar() finishDragTitlebar]; 324 [titlebar() finishDragTitlebar];
324 } 325 }
325 326
326 bool NativePanelTestingCocoa::VerifyDrawingAttention() const { 327 bool NativePanelTestingCocoa::VerifyDrawingAttention() const {
327 return [titlebar() isDrawingAttention]; 328 return [titlebar() isDrawingAttention];
328 } 329 }
329 330
331 bool NativePanelTestingCocoa::VerifyTitlebarPaintedAsActive(bool as_active) {
332 // TODO(jianli): to be implemented.
333 return false;
334 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698