| OLD | NEW |
| 1 // Copyright (c) 2012 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2012 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_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 5 #ifndef CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 6 #define CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| 7 | 7 |
| 8 #include <string> | 8 #include <string> |
| 9 #include <vector> | 9 #include <vector> |
| 10 | 10 |
| (...skipping 419 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 430 // Returns true if the suggest text is valid. | 430 // Returns true if the suggest text is valid. |
| 431 bool HasValidSuggestText() const; | 431 bool HasValidSuggestText() const; |
| 432 | 432 |
| 433 // Helper to show the first run info bubble. | 433 // Helper to show the first run info bubble. |
| 434 void ShowFirstRunBubbleInternal(); | 434 void ShowFirstRunBubbleInternal(); |
| 435 | 435 |
| 436 // Draw the background and the left border. | 436 // Draw the background and the left border. |
| 437 void PaintActionBoxBackground(gfx::Canvas* canvas, | 437 void PaintActionBoxBackground(gfx::Canvas* canvas, |
| 438 const gfx::Rect& content_rect); | 438 const gfx::Rect& content_rect); |
| 439 | 439 |
| 440 // Draw backgrounds and borders for page actions. Must be called |
| 441 // after layout, so the |page_action_views_| have their bounds. |
| 442 void PaintPageActionBackgrounds(gfx::Canvas* canvas); |
| 443 |
| 440 #if defined(USE_AURA) | 444 #if defined(USE_AURA) |
| 441 // Fade in the location bar view so the icons come in gradually. | 445 // Fade in the location bar view so the icons come in gradually. |
| 442 void StartFadeAnimation(); | 446 void StartFadeAnimation(); |
| 443 | 447 |
| 444 // Stops the fade animation, if it is playing. Otherwise does nothing. | 448 // Stops the fade animation, if it is playing. Otherwise does nothing. |
| 445 void StopFadeAnimation(); | 449 void StopFadeAnimation(); |
| 446 | 450 |
| 447 // Cleans up layers used for the animation. | 451 // Cleans up layers used for the animation. |
| 448 void CleanupFadeAnimation(); | 452 void CleanupFadeAnimation(); |
| 449 #endif | 453 #endif |
| (...skipping 116 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 566 | 570 |
| 567 #if defined(USE_AURA) | 571 #if defined(USE_AURA) |
| 568 // Observer for a fade-in animation. | 572 // Observer for a fade-in animation. |
| 569 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; | 573 scoped_ptr<FadeAnimationObserver> fade_animation_observer_; |
| 570 #endif | 574 #endif |
| 571 | 575 |
| 572 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 576 DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |
| 573 }; | 577 }; |
| 574 | 578 |
| 575 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 579 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |