| OLD | NEW |
| 1 // Copyright (c) 2009 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2009 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_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ | 5 #ifndef CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
| 6 #define CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ | 6 #define CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
| 7 | 7 |
| 8 #include "base/basictypes.h" | 8 #include "base/basictypes.h" |
| 9 #include "base/scoped_ptr.h" | 9 #include "base/scoped_ptr.h" |
| 10 #include "chrome/browser/autocomplete/autocomplete_edit.h" | 10 #include "chrome/browser/autocomplete/autocomplete_edit.h" |
| (...skipping 33 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 44 // views::ButtonListener implementation. | 44 // views::ButtonListener implementation. |
| 45 virtual void ButtonPressed(views::Button* sender, const views::Event& event); | 45 virtual void ButtonPressed(views::Button* sender, const views::Event& event); |
| 46 | 46 |
| 47 // AutocompleteController implementation. | 47 // AutocompleteController implementation. |
| 48 virtual void OnAutocompleteAccept(const GURL& url, | 48 virtual void OnAutocompleteAccept(const GURL& url, |
| 49 WindowOpenDisposition disposition, | 49 WindowOpenDisposition disposition, |
| 50 PageTransition::Type transition, | 50 PageTransition::Type transition, |
| 51 const GURL& alternate_nav_url); | 51 const GURL& alternate_nav_url); |
| 52 virtual void OnChanged(); | 52 virtual void OnChanged(); |
| 53 virtual void OnInputInProgress(bool in_progress); | 53 virtual void OnInputInProgress(bool in_progress); |
| 54 virtual void OnKillFocus(); |
| 54 virtual void OnSetFocus(); | 55 virtual void OnSetFocus(); |
| 55 virtual SkBitmap GetFavIcon() const; | 56 virtual SkBitmap GetFavIcon() const; |
| 56 virtual std::wstring GetTitle() const; | 57 virtual std::wstring GetTitle() const; |
| 57 | 58 |
| 58 // BubblePositioner: | 59 // BubblePositioner: |
| 59 virtual gfx::Rect GetLocationStackBounds() const; | 60 virtual gfx::Rect GetLocationStackBounds() const; |
| 60 | 61 |
| 61 void AddTabWithURL(const GURL& url, PageTransition::Type transition); | 62 void AddTabWithURL(const GURL& url, PageTransition::Type transition); |
| 62 | 63 |
| 63 Browser* browser_; | 64 Browser* browser_; |
| 64 | 65 |
| 65 bool initialized_; | 66 bool initialized_; |
| 66 | 67 |
| 67 views::ImageButton* back_button_; | 68 views::ImageButton* back_button_; |
| 68 views::ImageView* bf_separator_; | 69 views::ImageView* bf_separator_; |
| 69 views::ImageButton* forward_button_; | 70 views::ImageButton* forward_button_; |
| 70 | 71 |
| 71 scoped_ptr<AutocompleteEditViewGtk> location_entry_; | 72 scoped_ptr<AutocompleteEditViewGtk> location_entry_; |
| 72 views::NativeViewHost* location_entry_view_; | 73 views::NativeViewHost* location_entry_view_; |
| 73 | 74 |
| 74 DISALLOW_COPY_AND_ASSIGN(CompactNavigationBar); | 75 DISALLOW_COPY_AND_ASSIGN(CompactNavigationBar); |
| 75 }; | 76 }; |
| 76 | 77 |
| 77 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ | 78 #endif // CHROME_BROWSER_CHROMEOS_COMPACT_NAVIGATION_BAR_H_ |
| OLD | NEW |