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

Side by Side Diff: chrome/browser/views/dropdown_bar_host.h

Issue 3167027: Merge 56737 - Fix numerous alignment problems, both horizontal and vertical, ... (Closed) Base URL: svn://svn.chromium.org/chrome/branches/472/src/
Patch Set: Created 10 years, 4 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) 2010 The Chromium Authors. All rights reserved. 1 // Copyright (c) 2010 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_VIEWS_DROPDOWN_BAR_HOST_H_ 5 #ifndef CHROME_BROWSER_VIEWS_DROPDOWN_BAR_HOST_H_
6 #define CHROME_BROWSER_VIEWS_DROPDOWN_BAR_HOST_H_ 6 #define CHROME_BROWSER_VIEWS_DROPDOWN_BAR_HOST_H_
7 7
8 #include "app/animation.h" 8 #include "app/animation.h"
9 #include "base/scoped_ptr.h" 9 #include "base/scoped_ptr.h"
10 #include "chrome/common/native_web_keyboard_event.h" 10 #include "chrome/common/native_web_keyboard_event.h"
(...skipping 59 matching lines...) Expand 10 before | Expand all | Expand 10 after
70 virtual void FocusWillChange(views::View* focused_before, 70 virtual void FocusWillChange(views::View* focused_before,
71 views::View* focused_now); 71 views::View* focused_now);
72 72
73 // Overridden from views::AcceleratorTarget: 73 // Overridden from views::AcceleratorTarget:
74 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) = 0; 74 virtual bool AcceleratorPressed(const views::Accelerator& accelerator) = 0;
75 75
76 // AnimationDelegate implementation: 76 // AnimationDelegate implementation:
77 virtual void AnimationProgressed(const Animation* animation); 77 virtual void AnimationProgressed(const Animation* animation);
78 virtual void AnimationEnded(const Animation* animation); 78 virtual void AnimationEnded(const Animation* animation);
79 79
80 // Get the offset with which to paint the theme image.
81 void GetThemePosition(gfx::Rect* bounds);
82
83 // During testing we can disable animations by setting this flag to true, 80 // During testing we can disable animations by setting this flag to true,
84 // so that opening and closing the dropdown bar is shown instantly, instead of 81 // so that opening and closing the dropdown bar is shown instantly, instead of
85 // having to poll it while it animates to open/closed status. 82 // having to poll it while it animates to open/closed status.
86 static bool disable_animations_during_testing_; 83 static bool disable_animations_during_testing_;
87 84
88 // Returns the browser view that the dropdown belongs to. 85 // Returns the browser view that the dropdown belongs to.
89 BrowserView* browser_view() const { return browser_view_; } 86 BrowserView* browser_view() const { return browser_view_; }
90 87
91 // Registers this class as the handler for when Escape is pressed. Once we 88 // Registers this class as the handler for when Escape is pressed. Once we
92 // loose focus we will unregister Escape and (any accelerators the derived 89 // loose focus we will unregister Escape and (any accelerators the derived
(...skipping 88 matching lines...) Expand 10 before | Expand all | Expand 10 after
181 scoped_ptr<views::Widget> host_; 178 scoped_ptr<views::Widget> host_;
182 179
183 // A flag to manually manage visibility. GTK/X11 is asynchrnous and 180 // A flag to manually manage visibility. GTK/X11 is asynchrnous and
184 // the state of the widget can be out of sync. 181 // the state of the widget can be out of sync.
185 bool is_visible_; 182 bool is_visible_;
186 183
187 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); 184 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost);
188 }; 185 };
189 186
190 #endif // CHROME_BROWSER_VIEWS_DROPDOWN_BAR_HOST_H_ 187 #endif // CHROME_BROWSER_VIEWS_DROPDOWN_BAR_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/views/detachable_toolbar_view.cc ('k') | chrome/browser/views/dropdown_bar_host.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698