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

Side by Side Diff: chrome/browser/feedback/feedback_util.cc

Issue 12737006: Allow feedback form to be shown in an App Launcher feedback mode. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Woops Created 7 years, 9 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
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 #include "chrome/browser/feedback/feedback_util.h" 5 #include "chrome/browser/feedback/feedback_util.h"
6 6
7 #include <sstream> 7 #include <sstream>
8 #include <string> 8 #include <string>
9 #include <vector> 9 #include <vector>
10 10
(...skipping 29 matching lines...) Expand all
40 #include "ui/base/l10n/l10n_util.h" 40 #include "ui/base/l10n/l10n_util.h"
41 41
42 #if defined(USE_ASH) 42 #if defined(USE_ASH)
43 #include "ash/shell.h" 43 #include "ash/shell.h"
44 #include "ash/shell_delegate.h" 44 #include "ash/shell_delegate.h"
45 #endif 45 #endif
46 46
47 using content::WebContents; 47 using content::WebContents;
48 48
49 const char kSyncDataKey[] = "about_sync_data"; 49 const char kSyncDataKey[] = "about_sync_data";
50 const char kAppLauncherCategoryTag[] = "AppLauncher";
50 51
51 #if defined(OS_CHROMEOS) 52 #if defined(OS_CHROMEOS)
52 const char kHUDLogDataKey[] = "hud_log"; 53 const char kHUDLogDataKey[] = "hud_log";
53 #endif 54 #endif
54 55
55 namespace { 56 namespace {
56 57
57 const int kFeedbackVersion = 1; 58 const int kFeedbackVersion = 1;
58 59
59 const char kReportPhishingUrl[] = 60 const char kReportPhishingUrl[] =
(...skipping 397 matching lines...) Expand 10 before | Expand all | Expand 10 after
457 if (screenshot_size == NULL) 458 if (screenshot_size == NULL)
458 screenshot_size = new gfx::Rect(); 459 screenshot_size = new gfx::Rect();
459 return *screenshot_size; 460 return *screenshot_size;
460 } 461 }
461 462
462 // static 463 // static
463 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) { 464 void FeedbackUtil::SetScreenshotSize(const gfx::Rect& rect) {
464 gfx::Rect& screen_size = GetScreenshotSize(); 465 gfx::Rect& screen_size = GetScreenshotSize();
465 screen_size = rect; 466 screen_size = rect;
466 } 467 }
OLDNEW

Powered by Google App Engine
This is Rietveld 408576698