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

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

Issue 2435493003: [Views][Mac] Security Chip Default Value (Closed)
Patch Set: Fix for pkasting Created 4 years, 2 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
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 <stddef.h> 8 #include <stddef.h>
9 9
10 #include <string> 10 #include <string>
(...skipping 304 matching lines...) Expand 10 before | Expand all | Expand 10 after
315 void ShowFirstRunBubbleInternal(); 315 void ShowFirstRunBubbleInternal();
316 316
317 // Returns true if the suggest text is valid. 317 // Returns true if the suggest text is valid.
318 bool HasValidSuggestText() const; 318 bool HasValidSuggestText() const;
319 319
320 // Returns text describing the URL's security level, to be placed in the 320 // Returns text describing the URL's security level, to be placed in the
321 // security chip. 321 // security chip.
322 base::string16 GetSecurityText() const; 322 base::string16 GetSecurityText() const;
323 323
324 bool ShouldShowKeywordBubble() const; 324 bool ShouldShowKeywordBubble() const;
325 bool ShouldShowEVBubble() const;
326 325
327 // Returns true when the current page is explicitly secure or insecure. 326 // Returns true when the current page is explicitly secure or insecure.
328 // In these cases, we should show the state of the security chip. 327 // In these cases, we should show the state of the security chip.
329 bool ShouldShowSecurityChip() const; 328 bool ShouldShowSecurityChip() const;
330 329
331 // Returns true if the chip should be animated 330 // Returns true if the chip should be animated
332 bool ShouldAnimateSecurityChip() const; 331 bool ShouldAnimateSecurityChip() const;
333 332
334 // Used to "reverse" the URL showing/hiding animations, since we use separate 333 // Used to "reverse" the URL showing/hiding animations, since we use separate
335 // animations whose curves are not true inverses of each other. Based on the 334 // animations whose curves are not true inverses of each other. Based on the
(...skipping 139 matching lines...) Expand 10 before | Expand all | Expand 10 after
475 474
476 // Tracks this preference to determine whether bookmark editing is allowed. 475 // Tracks this preference to determine whether bookmark editing is allowed.
477 BooleanPrefMember edit_bookmarks_enabled_; 476 BooleanPrefMember edit_bookmarks_enabled_;
478 477
479 // This is a debug state variable that stores if the WebContents was null 478 // This is a debug state variable that stores if the WebContents was null
480 // during the last RefreshPageAction. 479 // during the last RefreshPageAction.
481 bool web_contents_null_at_last_refresh_; 480 bool web_contents_null_at_last_refresh_;
482 481
483 // These allow toggling the verbose security state behavior via flags. 482 // These allow toggling the verbose security state behavior via flags.
484 bool should_show_secure_state_; 483 bool should_show_secure_state_;
484 bool should_show_nonsecure_state_;
485 bool should_animate_secure_state_; 485 bool should_animate_secure_state_;
486 bool should_animate_nonsecure_state_; 486 bool should_animate_nonsecure_state_;
487 487
488 DISALLOW_COPY_AND_ASSIGN(LocationBarView); 488 DISALLOW_COPY_AND_ASSIGN(LocationBarView);
489 }; 489 };
490 490
491 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_ 491 #endif // CHROME_BROWSER_UI_VIEWS_LOCATION_BAR_LOCATION_BAR_VIEW_H_
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698