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

Side by Side Diff: chrome/browser/spellchecker/spellchecker_session_bridge_android.cc

Issue 2177343002: Componentize spellcheck [2]: move common/ files to component. (Closed) Base URL: https://chromium.googlesource.com/chromium/src.git@master
Patch Set: move message generator to component Created 4 years, 4 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 2015 The Chromium Authors. All rights reserved. 1 // Copyright 2015 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/spellchecker/spellchecker_session_bridge_android.h" 5 #include "chrome/browser/spellchecker/spellchecker_session_bridge_android.h"
6 6
7 #include <stddef.h> 7 #include <stddef.h>
8 #include <utility> 8 #include <utility>
9 9
10 #include "base/android/jni_array.h" 10 #include "base/android/jni_array.h"
11 #include "base/android/jni_string.h" 11 #include "base/android/jni_string.h"
12 #include "chrome/common/spellcheck_messages.h" 12 #include "components/spellcheck/common/spellcheck_messages.h"
13 #include "chrome/common/spellcheck_result.h" 13 #include "components/spellcheck/common/spellcheck_result.h"
14 #include "content/public/browser/render_process_host.h" 14 #include "content/public/browser/render_process_host.h"
15 #include "jni/SpellCheckerSessionBridge_jni.h" 15 #include "jni/SpellCheckerSessionBridge_jni.h"
16 16
17 SpellCheckerSessionBridge::SpellCheckerSessionBridge(int render_process_id) 17 SpellCheckerSessionBridge::SpellCheckerSessionBridge(int render_process_id)
18 : render_process_id_(render_process_id) {} 18 : render_process_id_(render_process_id) {}
19 19
20 SpellCheckerSessionBridge::~SpellCheckerSessionBridge() {} 20 SpellCheckerSessionBridge::~SpellCheckerSessionBridge() {}
21 21
22 // static 22 // static
23 bool SpellCheckerSessionBridge::RegisterJNI(JNIEnv* env) { 23 bool SpellCheckerSessionBridge::RegisterJNI(JNIEnv* env) {
(...skipping 79 matching lines...) Expand 10 before | Expand all | Expand 10 after
103 java_object_.Reset(); 103 java_object_.Reset();
104 } 104 }
105 105
106 SpellCheckerSessionBridge::SpellingRequest::SpellingRequest( 106 SpellCheckerSessionBridge::SpellingRequest::SpellingRequest(
107 int route_id, 107 int route_id,
108 int identifier, 108 int identifier,
109 const base::string16& text) 109 const base::string16& text)
110 : route_id(route_id), identifier(identifier), text(text) {} 110 : route_id(route_id), identifier(identifier), text(text) {}
111 111
112 SpellCheckerSessionBridge::SpellingRequest::~SpellingRequest() {} 112 SpellCheckerSessionBridge::SpellingRequest::~SpellingRequest() {}
OLDNEW
« no previous file with comments | « chrome/browser/spellchecker/spellcheck_service_browsertest.cc ('k') | chrome/browser/spellchecker/spelling_service_client.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698