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

Side by Side Diff: chrome/browser/ui/fullscreen_exit_bubble.cc

Issue 8549014: Add padding to the fullscreen exit bubble on linux. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Created 9 years, 1 month 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 | no next file » | 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) 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 "grit/ui_strings.h" 11 #include "grit/ui_strings.h"
12 #include "ui/base/l10n/l10n_util.h" 12 #include "ui/base/l10n/l10n_util.h"
13 #include "ui/gfx/rect.h" 13 #include "ui/gfx/rect.h"
14 14
15 // NOTE(koz): Linux doesn't use the thick shadowed border, so we add padding
16 // here.
17 #ifdef LINUX
18 const int FullscreenExitBubble::kPaddingPx = 8;
19 #else
15 const int FullscreenExitBubble::kPaddingPx = 0; 20 const int FullscreenExitBubble::kPaddingPx = 0;
21 #endif
16 const int FullscreenExitBubble::kInitialDelayMs = 3800; 22 const int FullscreenExitBubble::kInitialDelayMs = 3800;
17 const int FullscreenExitBubble::kIdleTimeMs = 2300; 23 const int FullscreenExitBubble::kIdleTimeMs = 2300;
18 const int FullscreenExitBubble::kPositionCheckHz = 10; 24 const int FullscreenExitBubble::kPositionCheckHz = 10;
19 const int FullscreenExitBubble::kSlideInRegionHeightPx = 4; 25 const int FullscreenExitBubble::kSlideInRegionHeightPx = 4;
20 const int FullscreenExitBubble::kSlideInDurationMs = 350; 26 const int FullscreenExitBubble::kSlideInDurationMs = 350;
21 const int FullscreenExitBubble::kSlideOutDurationMs = 700; 27 const int FullscreenExitBubble::kSlideOutDurationMs = 700;
22 const int FullscreenExitBubble::kPopupTopPx = 15; 28 const int FullscreenExitBubble::kPopupTopPx = 15;
23 29
24 FullscreenExitBubble::FullscreenExitBubble(Browser* browser, 30 FullscreenExitBubble::FullscreenExitBubble(Browser* browser,
25 const GURL& url, 31 const GURL& url,
(...skipping 95 matching lines...) Expand 10 before | Expand all | Expand 10 after
121 } 127 }
122 128
123 string16 FullscreenExitBubble::GetAllowButtonText() const { 129 string16 FullscreenExitBubble::GetAllowButtonText() const {
124 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_ALLOW); 130 return l10n_util::GetStringUTF16(IDS_FULLSCREEN_ALLOW);
125 } 131 }
126 132
127 string16 FullscreenExitBubble::GetInstructionText() const { 133 string16 FullscreenExitBubble::GetInstructionText() const {
128 return l10n_util::GetStringFUTF16(IDS_FULLSCREEN_PRESS_ESC_TO_EXIT, 134 return l10n_util::GetStringFUTF16(IDS_FULLSCREEN_PRESS_ESC_TO_EXIT,
129 l10n_util::GetStringUTF16(IDS_APP_ESC_KEY)); 135 l10n_util::GetStringUTF16(IDS_APP_ESC_KEY));
130 } 136 }
OLDNEW
« no previous file with comments | « no previous file | no next file » | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698