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

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

Issue 138943006: Remove a bunch of dead files after the win aura switch. (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: Created 6 years, 11 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 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ 5 #ifndef CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_
6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ 6 #define CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_
7 7
8 #include "base/compiler_specific.h" 8 #include "base/compiler_specific.h"
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "content/public/browser/native_web_keyboard_event.h" 10 #include "content/public/browser/native_web_keyboard_event.h"
(...skipping 16 matching lines...) Expand all
27 27
28 namespace views { 28 namespace views {
29 class ExternalFocusTracker; 29 class ExternalFocusTracker;
30 class View; 30 class View;
31 class Widget; 31 class Widget;
32 } // namespace views 32 } // namespace views
33 33
34 //////////////////////////////////////////////////////////////////////////////// 34 ////////////////////////////////////////////////////////////////////////////////
35 // 35 //
36 // The DropdownBarHost implements the container widget for the UI that 36 // The DropdownBarHost implements the container widget for the UI that
37 // is shown at the top of browser contents. It uses the appropriate 37 // is shown at the top of browser contents. It uses the implementation from
38 // implementation from dropdown_bar_host_win.cc or dropdown_bar_host_aura.cc to 38 // dropdown_bar_host_aura.cc to draw its content and is responsible for showing,
39 // draw its content and is responsible for showing, hiding, animating, closing, 39 // hiding, animating, closing, and moving the bar if needed, for example if the
40 // and moving the bar if needed, for example if the widget is 40 // widget is obscuring the selection results in FindBar.
41 // obscuring the selection results in FindBar.
42 // 41 //
43 //////////////////////////////////////////////////////////////////////////////// 42 ////////////////////////////////////////////////////////////////////////////////
44 class DropdownBarHost : public ui::AcceleratorTarget, 43 class DropdownBarHost : public ui::AcceleratorTarget,
45 public views::FocusChangeListener, 44 public views::FocusChangeListener,
46 public gfx::AnimationDelegate { 45 public gfx::AnimationDelegate {
47 public: 46 public:
48 explicit DropdownBarHost(BrowserView* browser_view); 47 explicit DropdownBarHost(BrowserView* browser_view);
49 virtual ~DropdownBarHost(); 48 virtual ~DropdownBarHost();
50 49
51 // Initializes the DropdownBarHost. This creates the widget that |view| paints 50 // Initializes the DropdownBarHost. This creates the widget that |view| paints
(...skipping 149 matching lines...) Expand 10 before | Expand all | Expand 10 after
201 scoped_ptr<views::Widget> host_; 200 scoped_ptr<views::Widget> host_;
202 201
203 // A flag to manually manage visibility. GTK/X11 is asynchronous and 202 // A flag to manually manage visibility. GTK/X11 is asynchronous and
204 // the state of the widget can be out of sync. 203 // the state of the widget can be out of sync.
205 bool is_visible_; 204 bool is_visible_;
206 205
207 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost); 206 DISALLOW_COPY_AND_ASSIGN(DropdownBarHost);
208 }; 207 };
209 208
210 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_ 209 #endif // CHROME_BROWSER_UI_VIEWS_DROPDOWN_BAR_HOST_H_
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/app_menu_button_win.cc ('k') | chrome/browser/ui/views/dropdown_bar_host_win.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698