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

Side by Side Diff: chrome/browser/ui/views/keyboard_overlay_delegate.cc

Issue 8986007: Move WebUIMessageHandler to its own file in the public directory and put it in the content namesp... (Closed) Base URL: svn://chrome-svn/chrome/trunk/src/
Patch Set: '' Created 8 years, 11 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) 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/views/keyboard_overlay_delegate.h" 5 #include "chrome/browser/ui/views/keyboard_overlay_delegate.h"
6 6
7 #include <algorithm> 7 #include <algorithm>
8 8
9 #include "base/memory/scoped_ptr.h" 9 #include "base/memory/scoped_ptr.h"
10 #include "base/utf_string_conversions.h" 10 #include "base/utf_string_conversions.h"
11 #include "chrome/browser/chromeos/input_method/input_method_manager.h" 11 #include "chrome/browser/chromeos/input_method/input_method_manager.h"
12 #include "chrome/browser/ui/views/html_dialog_view.h" 12 #include "chrome/browser/ui/views/html_dialog_view.h"
13 #include "chrome/browser/ui/webui/html_dialog_ui.h" 13 #include "chrome/browser/ui/webui/html_dialog_ui.h"
14 #include "chrome/common/url_constants.h" 14 #include "chrome/common/url_constants.h"
15 #include "grit/generated_resources.h" 15 #include "grit/generated_resources.h"
16 #include "ui/base/l10n/l10n_util.h" 16 #include "ui/base/l10n/l10n_util.h"
17 #include "ui/gfx/screen.h" 17 #include "ui/gfx/screen.h"
18 18
19 using content::WebContents; 19 using content::WebContents;
20 using content::WebUIMessageHandler;
20 21
21 static const int kBaseWidth = 1252; 22 static const int kBaseWidth = 1252;
22 static const int kBaseHeight = 516; 23 static const int kBaseHeight = 516;
23 static const int kHorizontalMargin = 28; 24 static const int kHorizontalMargin = 28;
24 25
25 KeyboardOverlayDelegate::KeyboardOverlayDelegate( 26 KeyboardOverlayDelegate::KeyboardOverlayDelegate(
26 const std::wstring& title) 27 const std::wstring& title)
27 : title_(WideToUTF16Hack(title)), 28 : title_(WideToUTF16Hack(title)),
28 view_(NULL) { 29 view_(NULL) {
29 } 30 }
(...skipping 46 matching lines...) Expand 10 before | Expand all | Expand 10 after
76 } 77 }
77 78
78 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const { 79 bool KeyboardOverlayDelegate::ShouldShowDialogTitle() const {
79 return false; 80 return false;
80 } 81 }
81 82
82 bool KeyboardOverlayDelegate::HandleContextMenu( 83 bool KeyboardOverlayDelegate::HandleContextMenu(
83 const ContextMenuParams& params) { 84 const ContextMenuParams& params) {
84 return true; 85 return true;
85 } 86 }
OLDNEW
« no previous file with comments | « chrome/browser/ui/views/keyboard_overlay_delegate.h ('k') | chrome/browser/ui/webui/active_downloads_ui.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698