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

Side by Side Diff: chrome/browser/ui/views/location_bar/location_bar_view.h

Issue 23983039: Merge 221688 "Implement put_accvalue for textfields and location..." (Closed) Base URL: svn://svn.chromium.org/chrome/branches/1599/src/
Patch Set: Created 7 years, 3 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
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
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
11 #include "base/compiler_specific.h" 11 #include "base/compiler_specific.h"
12 #include "base/memory/weak_ptr.h"
12 #include "base/prefs/pref_member.h" 13 #include "base/prefs/pref_member.h"
13 #include "chrome/browser/extensions/extension_context_menu_model.h" 14 #include "chrome/browser/extensions/extension_context_menu_model.h"
14 #include "chrome/browser/search_engines/template_url_service_observer.h" 15 #include "chrome/browser/search_engines/template_url_service_observer.h"
15 #include "chrome/browser/ui/omnibox/location_bar.h" 16 #include "chrome/browser/ui/omnibox/location_bar.h"
16 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h" 17 #include "chrome/browser/ui/omnibox/omnibox_edit_controller.h"
17 #include "chrome/browser/ui/search/search_model_observer.h" 18 #include "chrome/browser/ui/search/search_model_observer.h"
18 #include "chrome/browser/ui/toolbar/toolbar_model.h" 19 #include "chrome/browser/ui/toolbar/toolbar_model.h"
19 #include "chrome/browser/ui/views/dropdown_bar_host.h" 20 #include "chrome/browser/ui/views/dropdown_bar_host.h"
20 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h" 21 #include "chrome/browser/ui/views/dropdown_bar_host_delegate.h"
21 #include "chrome/browser/ui/views/extensions/extension_popup.h" 22 #include "chrome/browser/ui/views/extensions/extension_popup.h"
(...skipping 371 matching lines...) Expand 10 before | Expand all | Expand 10 after
393 // Returns the number of scripts currently running on the page. 394 // Returns the number of scripts currently running on the page.
394 size_t ScriptBubbleScriptsRunning(); 395 size_t ScriptBubbleScriptsRunning();
395 396
396 // Update the Script Bubble Icon, to reflect the number of content scripts 397 // Update the Script Bubble Icon, to reflect the number of content scripts
397 // running on the page. 398 // running on the page.
398 void RefreshScriptBubble(); 399 void RefreshScriptBubble();
399 400
400 // Update the view for the zoom icon based on the current tab's zoom. 401 // Update the view for the zoom icon based on the current tab's zoom.
401 void RefreshZoomView(); 402 void RefreshZoomView();
402 403
403 // Sets the visibility of view to new_vis.
404 void ToggleVisibility(bool new_vis, views::View* view);
dmazzoni 2013/09/17 16:55:08 For the record, this was never implemented and nev
405
406 #if !defined(USE_AURA) 404 #if !defined(USE_AURA)
407 // Helper for the Mouse event handlers that does all the real work. 405 // Helper for the Mouse event handlers that does all the real work.
408 void OnMouseEvent(const ui::MouseEvent& event, UINT msg); 406 void OnMouseEvent(const ui::MouseEvent& event, UINT msg);
409 #endif 407 #endif
410 408
411 // Returns true if the suggest text is valid. 409 // Returns true if the suggest text is valid.
412 bool HasValidSuggestText() const; 410 bool HasValidSuggestText() const;
413 411
414 // Helper to show the first run info bubble. 412 // Helper to show the first run info bubble.
415 void ShowFirstRunBubbleInternal(); 413 void ShowFirstRunBubbleInternal();
416 414
417 // Draw backgrounds and borders for page actions. Must be called 415 // Draw backgrounds and borders for page actions. Must be called
418 // after layout, so the |page_action_views_| have their bounds. 416 // after layout, so the |page_action_views_| have their bounds.
419 void PaintPageActionBackgrounds(gfx::Canvas* canvas); 417 void PaintPageActionBackgrounds(gfx::Canvas* canvas);
420 418
419 // Handles a request to change the value of this text field from software
420 // using an accessibility API (typically automation software, screen readers
421 // don't normally use this). Sets the value and clears the selection.
422 void AccessibilitySetValue(const string16& new_value);
423
421 // The Browser this LocationBarView is in. Note that at least 424 // The Browser this LocationBarView is in. Note that at least
422 // chromeos::SimpleWebViewDialog uses a LocationBarView outside any browser 425 // chromeos::SimpleWebViewDialog uses a LocationBarView outside any browser
423 // window, so this may be NULL. 426 // window, so this may be NULL.
424 Browser* browser_; 427 Browser* browser_;
425 428
426 // The Autocomplete Edit field. 429 // The Autocomplete Edit field.
427 scoped_ptr<OmniboxView> location_entry_; 430 scoped_ptr<OmniboxView> location_entry_;
428 431
429 // The profile which corresponds to this View. 432 // The profile which corresponds to this View.
430 Profile* profile_; 433 Profile* profile_;
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
526 529
527 // While animating, the host clips the widget and draws only the bottom 530 // While animating, the host clips the widget and draws only the bottom
528 // part of it. The view needs to know the pixel offset at which we are drawing 531 // part of it. The view needs to know the pixel offset at which we are drawing
529 // the widget so that we can draw the curved edges that attach to the toolbar 532 // the widget so that we can draw the curved edges that attach to the toolbar
530 // in the right location. 533 // in the right location.
531 int animation_offset_; 534 int animation_offset_;
532 535
533 // Used to register for notifications received by NotificationObserver. 536 // Used to register for notifications received by NotificationObserver.
534 content::NotificationRegistrar registrar_; 537 content::NotificationRegistrar registrar_;
535 538
539 // Used to bind callback functions to this object.
540 base::WeakPtrFactory<LocationBarView> weak_ptr_factory_;
541
536 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 542 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
537 }; 543 };
538 544
539 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 545 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW
« no previous file with comments | « no previous file | chrome/browser/ui/views/location_bar/location_bar_view.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698