| 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 404 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 415 // Returns true if the suggest text is valid. | 415 // Returns true if the suggest text is valid. |
| 416 bool HasValidSuggestText() const; | 416 bool HasValidSuggestText() const; |
| 417 | 417 |
| 418 // Helper to show the first run info bubble. | 418 // Helper to show the first run info bubble. |
| 419 void ShowFirstRunBubbleInternal(); | 419 void ShowFirstRunBubbleInternal(); |
| 420 | 420 |
| 421 // Draw backgrounds and borders for page actions. Must be called | 421 // Draw backgrounds and borders for page actions. Must be called |
| 422 // after layout, so the |page_action_views_| have their bounds. | 422 // after layout, so the |page_action_views_| have their bounds. |
| 423 void PaintPageActionBackgrounds(gfx::Canvas* canvas); | 423 void PaintPageActionBackgrounds(gfx::Canvas* canvas); |
| 424 | 424 |
| 425 // Handles a request to change the value of this text field from software |
| 426 // using an accessibility API (typically automation software, screen readers |
| 427 // don't normally use this). Sets the value and clears the selection. |
| 428 void AccessibilitySetValue(const string16& new_value); |
| 429 |
| 425 // The Browser this LocationBarView is in. Note that at least | 430 // The Browser this LocationBarView is in. Note that at least |
| 426 // chromeos::SimpleWebViewDialog uses a LocationBarView outside any browser | 431 // chromeos::SimpleWebViewDialog uses a LocationBarView outside any browser |
| 427 // window, so this may be NULL. | 432 // window, so this may be NULL. |
| 428 Browser* browser_; | 433 Browser* browser_; |
| 429 | 434 |
| 430 // The Autocomplete Edit field. | 435 // The Autocomplete Edit field. |
| 431 scoped_ptr<OmniboxView> location_entry_; | 436 scoped_ptr<OmniboxView> location_entry_; |
| 432 | 437 |
| 433 // The profile which corresponds to this View. | 438 // The profile which corresponds to this View. |
| 434 Profile* profile_; | 439 Profile* profile_; |
| (...skipping 96 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 531 // in the right location. | 536 // in the right location. |
| 532 int animation_offset_; | 537 int animation_offset_; |
| 533 | 538 |
| 534 // Used to register for notifications received by NotificationObserver. | 539 // Used to register for notifications received by NotificationObserver. |
| 535 content::NotificationRegistrar registrar_; | 540 content::NotificationRegistrar registrar_; |
| 536 | 541 |
| 537 DISALLOW_COPY_AND_ASSIGN(LocationBarView); | 542 DISALLOW_COPY_AND_ASSIGN(LocationBarView); |
| 538 }; | 543 }; |
| 539 | 544 |
| 540 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ | 545 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ |
| OLD | NEW |