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

Side by Side Diff: chrome/browser/ui/panels/panel_browser_view.h

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
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
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 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
7 #pragma once 7 #pragma once
8 8
9 #include "base/gtest_prod_util.h" 9 #include "base/gtest_prod_util.h"
10 #include "base/memory/scoped_ptr.h" 10 #include "base/memory/scoped_ptr.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 48
49 enum MouseDraggingState { 49 enum MouseDraggingState {
50 NO_DRAGGING, 50 NO_DRAGGING,
51 DRAGGING_STARTED, 51 DRAGGING_STARTED,
52 DRAGGING_ENDED 52 DRAGGING_ENDED
53 }; 53 };
54 54
55 // Overridden from BrowserView: 55 // Overridden from BrowserView:
56 virtual void Init() OVERRIDE; 56 virtual void Init() OVERRIDE;
57 virtual void Close() OVERRIDE; 57 virtual void Close() OVERRIDE;
58 virtual void Deactivate() OVERRIDE;
58 virtual bool CanResize() const OVERRIDE; 59 virtual bool CanResize() const OVERRIDE;
59 virtual bool CanMaximize() const OVERRIDE; 60 virtual bool CanMaximize() const OVERRIDE;
60 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE; 61 virtual void SetBounds(const gfx::Rect& bounds) OVERRIDE;
61 virtual void UpdateTitleBar() OVERRIDE; 62 virtual void UpdateTitleBar() OVERRIDE;
62 virtual bool GetSavedWindowPlacement( 63 virtual bool GetSavedWindowPlacement(
63 gfx::Rect* bounds, 64 gfx::Rect* bounds,
64 ui::WindowShowState* show_state) const OVERRIDE; 65 ui::WindowShowState* show_state) const OVERRIDE;
65 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) 66 virtual bool AcceleratorPressed(const views::Accelerator& accelerator)
66 OVERRIDE; 67 OVERRIDE;
67 68
(...skipping 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
149 base::TimeTicks attention_cleared_time_; 150 base::TimeTicks attention_cleared_time_;
150 151
151 // The last view that had focus in the panel. This is saved so that focus can 152 // The last view that had focus in the panel. This is saved so that focus can
152 // be restored properly when a drag ends. 153 // be restored properly when a drag ends.
153 views::View* old_focused_view_; 154 views::View* old_focused_view_;
154 155
155 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView); 156 DISALLOW_COPY_AND_ASSIGN(PanelBrowserView);
156 }; 157 };
157 158
158 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_ 159 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_VIEW_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/panels/panel.cc ('k') | chrome/browser/ui/panels/panel_browser_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698