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

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

Issue 8114006: Reland the patch to fix the problem that sometimes panel on Windows is not set to top-most. (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 | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('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_FRAME_VIEW_H_ 5 #ifndef CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 6 #define CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_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 81 matching lines...) Expand 10 before | Expand all | Expand 10 after
92 virtual bool ShouldTabIconViewAnimate() const OVERRIDE; 92 virtual bool ShouldTabIconViewAnimate() const OVERRIDE;
93 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE; 93 virtual SkBitmap GetFaviconForTabIconView() OVERRIDE;
94 94
95 // Overridden from AnimationDelegate: 95 // Overridden from AnimationDelegate:
96 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE; 96 virtual void AnimationEnded(const ui::Animation* animation) OVERRIDE;
97 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE; 97 virtual void AnimationProgressed(const ui::Animation* animation) OVERRIDE;
98 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE; 98 virtual void AnimationCanceled(const ui::Animation* animation) OVERRIDE;
99 99
100 private: 100 private:
101 friend class PanelBrowserViewTest; 101 friend class PanelBrowserViewTest;
102 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, CreatePanel);
103 FRIEND_TEST_ALL_PREFIXES(PanelBrowserViewTest, ShowOrHideSettingsButton);
104 102
105 enum PaintState { 103 enum PaintState {
106 NOT_PAINTED, 104 NOT_PAINTED,
107 PAINT_AS_INACTIVE, 105 PAINT_AS_INACTIVE,
108 PAINT_AS_ACTIVE, 106 PAINT_AS_ACTIVE,
109 PAINT_FOR_ATTENTION 107 PAINT_FOR_ATTENTION
110 }; 108 };
111 109
112 class MouseWatcher : public MessageLoopForUI::Observer { 110 class MouseWatcher : public MessageLoopForUI::Observer {
113 public: 111 public:
(...skipping 83 matching lines...) Expand 10 before | Expand all | Expand 10 after
197 // Used to animate the visibility change of settings button. 195 // Used to animate the visibility change of settings button.
198 scoped_ptr<ui::SlideAnimation> settings_button_animator_; 196 scoped_ptr<ui::SlideAnimation> settings_button_animator_;
199 gfx::Rect settings_button_full_bounds_; 197 gfx::Rect settings_button_full_bounds_;
200 gfx::Rect settings_button_zero_bounds_; 198 gfx::Rect settings_button_zero_bounds_;
201 bool is_settings_button_visible_; 199 bool is_settings_button_visible_;
202 200
203 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView); 201 DISALLOW_COPY_AND_ASSIGN(PanelBrowserFrameView);
204 }; 202 };
205 203
206 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_ 204 #endif // CHROME_BROWSER_UI_PANELS_PANEL_BROWSER_FRAME_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/panels/panel_browser_view.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698