| OLD | NEW |
| 1 // Copyright (c) 2011 The Chromium Authors. All rights reserved. | 1 // Copyright (c) 2011 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 #include "chrome/browser/ui/fullscreen_exit_bubble.h" | 5 #include "chrome/browser/ui/fullscreen_exit_bubble.h" |
| 6 | 6 |
| 7 #include "base/utf_string_conversions.h" | 7 #include "base/utf_string_conversions.h" |
| 8 #include "chrome/app/chrome_command_ids.h" | 8 #include "chrome/app/chrome_command_ids.h" |
| 9 #include "chrome/browser/ui/browser.h" | 9 #include "chrome/browser/ui/browser.h" |
| 10 #include "grit/generated_resources.h" | 10 #include "grit/generated_resources.h" |
| 11 #include "ui/base/l10n/l10n_util.h" | 11 #include "ui/base/l10n/l10n_util.h" |
| 12 #include "ui/gfx/rect.h" | 12 #include "ui/gfx/rect.h" |
| 13 | 13 |
| 14 const int FullscreenExitBubble::kPaddingPx = 8; | 14 const int FullscreenExitBubble::kPaddingPx = 0; |
| 15 const int FullscreenExitBubble::kInitialDelayMs = 3800; | 15 const int FullscreenExitBubble::kInitialDelayMs = 3800; |
| 16 const int FullscreenExitBubble::kIdleTimeMs = 2300; | 16 const int FullscreenExitBubble::kIdleTimeMs = 2300; |
| 17 const int FullscreenExitBubble::kPositionCheckHz = 10; | 17 const int FullscreenExitBubble::kPositionCheckHz = 10; |
| 18 const int FullscreenExitBubble::kSlideInRegionHeightPx = 4; | 18 const int FullscreenExitBubble::kSlideInRegionHeightPx = 4; |
| 19 const int FullscreenExitBubble::kSlideInDurationMs = 350; | 19 const int FullscreenExitBubble::kSlideInDurationMs = 350; |
| 20 const int FullscreenExitBubble::kSlideOutDurationMs = 700; | 20 const int FullscreenExitBubble::kSlideOutDurationMs = 700; |
| 21 const int FullscreenExitBubble::kPopupTopPx = 15; | 21 const int FullscreenExitBubble::kPopupTopPx = 15; |
| 22 | 22 |
| 23 FullscreenExitBubble::FullscreenExitBubble(Browser* browser, | 23 FullscreenExitBubble::FullscreenExitBubble(Browser* browser, |
| 24 const GURL& url, | 24 const GURL& url, |
| (...skipping 94 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 119 return fullscreen_bubble::GetDenyButtonTextForType(bubble_type_); | 119 return fullscreen_bubble::GetDenyButtonTextForType(bubble_type_); |
| 120 } | 120 } |
| 121 | 121 |
| 122 string16 FullscreenExitBubble::GetAllowButtonText() const { | 122 string16 FullscreenExitBubble::GetAllowButtonText() const { |
| 123 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_ALLOW); | 123 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_ALLOW); |
| 124 } | 124 } |
| 125 | 125 |
| 126 string16 FullscreenExitBubble::GetInstructionText() const { | 126 string16 FullscreenExitBubble::GetInstructionText() const { |
| 127 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_PRESS_ESC_TO_EXIT); | 127 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_PRESS_ESC_TO_EXIT); |
| 128 } | 128 } |
| OLD | NEW |