| 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 #pragma once |    7 #pragma once | 
|    8  |    8  | 
|    9 #include <string> |    9 #include <string> | 
|   10 #include <vector> |   10 #include <vector> | 
| (...skipping 159 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  170  |  170  | 
|  171   // Returns true if the location entry is focusable and visible in |  171   // Returns true if the location entry is focusable and visible in | 
|  172   // the root view. |  172   // the root view. | 
|  173   bool IsLocationEntryFocusableInRootView() const; |  173   bool IsLocationEntryFocusableInRootView() const; | 
|  174  |  174  | 
|  175   // Sizing functions |  175   // Sizing functions | 
|  176   virtual gfx::Size GetPreferredSize() OVERRIDE; |  176   virtual gfx::Size GetPreferredSize() OVERRIDE; | 
|  177  |  177  | 
|  178   // Layout and Painting functions |  178   // Layout and Painting functions | 
|  179   virtual void Layout() OVERRIDE; |  179   virtual void Layout() OVERRIDE; | 
|  180   virtual void OnPaint(gfx::Canvas* canvas) OVERRIDE; |  180   virtual void OnPaint(gfx::CanvasSkia* canvas) OVERRIDE; | 
|  181  |  181  | 
|  182   // No focus border for the location bar, the caret is enough. |  182   // No focus border for the location bar, the caret is enough. | 
|  183   virtual void OnPaintFocusBorder(gfx::Canvas* canvas) OVERRIDE { } |  183   virtual void OnPaintFocusBorder(gfx::CanvasSkia* canvas) OVERRIDE {} | 
|  184  |  184  | 
|  185   // Set if we should show a focus rect while the location entry field is |  185   // Set if we should show a focus rect while the location entry field is | 
|  186   // focused. Used when the toolbar is in full keyboard accessibility mode. |  186   // focused. Used when the toolbar is in full keyboard accessibility mode. | 
|  187   // Repaints if necessary. |  187   // Repaints if necessary. | 
|  188   virtual void SetShowFocusRect(bool show); |  188   virtual void SetShowFocusRect(bool show); | 
|  189  |  189  | 
|  190   // Select all of the text. Needed when the user tabs through controls |  190   // Select all of the text. Needed when the user tabs through controls | 
|  191   // in the toolbar in full keyboard accessibility mode. |  191   // in the toolbar in full keyboard accessibility mode. | 
|  192   virtual void SelectAll(); |  192   virtual void SelectAll(); | 
|  193  |  193  | 
| (...skipping 232 matching lines...) Expand 10 before | Expand all | Expand 10 after  Loading... | 
|  426   // While animating, the host clips the widget and draws only the bottom |  426   // While animating, the host clips the widget and draws only the bottom | 
|  427   // part of it. The view needs to know the pixel offset at which we are drawing |  427   // part of it. The view needs to know the pixel offset at which we are drawing | 
|  428   // the widget so that we can draw the curved edges that attach to the toolbar |  428   // the widget so that we can draw the curved edges that attach to the toolbar | 
|  429   // in the right location. |  429   // in the right location. | 
|  430   int animation_offset_; |  430   int animation_offset_; | 
|  431  |  431  | 
|  432   DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); |  432   DISALLOW_IMPLICIT_CONSTRUCTORS(LocationBarView); | 
|  433 }; |  433 }; | 
|  434  |  434  | 
|  435 #endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |  435 #endif  // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 
| OLD | NEW |