| OLD | NEW |
| 1 // Copyright (c) 2010 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/autocomplete/autocomplete_edit_view_win.h" | 5 #include "chrome/browser/autocomplete/autocomplete_edit_view_win.h" |
| 6 | 6 |
| 7 #include <algorithm> | 7 #include <algorithm> |
| 8 #include <locale> | 8 #include <locale> |
| 9 #include <string> | 9 #include <string> |
| 10 | 10 |
| 11 #include <richedit.h> | 11 #include <richedit.h> |
| (...skipping 21 matching lines...) Expand all Loading... |
| 33 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" | 33 #include "chrome/browser/autocomplete/autocomplete_popup_model.h" |
| 34 #include "chrome/browser/autocomplete/keyword_provider.h" | 34 #include "chrome/browser/autocomplete/keyword_provider.h" |
| 35 #include "chrome/browser/browser_process.h" | 35 #include "chrome/browser/browser_process.h" |
| 36 #include "chrome/browser/command_updater.h" | 36 #include "chrome/browser/command_updater.h" |
| 37 #include "chrome/browser/metrics/user_metrics.h" | 37 #include "chrome/browser/metrics/user_metrics.h" |
| 38 #include "chrome/browser/net/url_fixer_upper.h" | 38 #include "chrome/browser/net/url_fixer_upper.h" |
| 39 #include "chrome/browser/profiles/profile.h" | 39 #include "chrome/browser/profiles/profile.h" |
| 40 #include "chrome/browser/search_engines/template_url.h" | 40 #include "chrome/browser/search_engines/template_url.h" |
| 41 #include "chrome/browser/search_engines/template_url_model.h" | 41 #include "chrome/browser/search_engines/template_url_model.h" |
| 42 #include "chrome/browser/tab_contents/tab_contents.h" | 42 #include "chrome/browser/tab_contents/tab_contents.h" |
| 43 #include "chrome/browser/views/location_bar/location_bar_view.h" | 43 #include "chrome/browser/ui/views/location_bar/location_bar_view.h" |
| 44 #include "chrome/common/notification_service.h" | 44 #include "chrome/common/notification_service.h" |
| 45 #include "googleurl/src/url_util.h" | 45 #include "googleurl/src/url_util.h" |
| 46 #include "gfx/canvas.h" | 46 #include "gfx/canvas.h" |
| 47 #include "gfx/canvas_skia.h" | 47 #include "gfx/canvas_skia.h" |
| 48 #include "grit/generated_resources.h" | 48 #include "grit/generated_resources.h" |
| 49 #include "net/base/escape.h" | 49 #include "net/base/escape.h" |
| 50 #include "skia/ext/skia_utils_win.h" | 50 #include "skia/ext/skia_utils_win.h" |
| 51 #include "ui/base/clipboard/clipboard.h" | 51 #include "ui/base/clipboard/clipboard.h" |
| 52 #include "ui/base/clipboard/scoped_clipboard_writer.h" | 52 #include "ui/base/clipboard/scoped_clipboard_writer.h" |
| 53 #include "views/drag_utils.h" | 53 #include "views/drag_utils.h" |
| (...skipping 2555 matching lines...) Expand 10 before | Expand all | Expand 10 after Loading... |
| 2609 | 2609 |
| 2610 bool AutocompleteEditViewWin::IsImeComposing() const { | 2610 bool AutocompleteEditViewWin::IsImeComposing() const { |
| 2611 bool ime_composing = false; | 2611 bool ime_composing = false; |
| 2612 HIMC context = ImmGetContext(m_hWnd); | 2612 HIMC context = ImmGetContext(m_hWnd); |
| 2613 if (context) { | 2613 if (context) { |
| 2614 ime_composing = !!ImmGetCompositionString(context, GCS_COMPSTR, NULL, 0); | 2614 ime_composing = !!ImmGetCompositionString(context, GCS_COMPSTR, NULL, 0); |
| 2615 ImmReleaseContext(m_hWnd, context); | 2615 ImmReleaseContext(m_hWnd, context); |
| 2616 } | 2616 } |
| 2617 return ime_composing; | 2617 return ime_composing; |
| 2618 } | 2618 } |
| OLD | NEW |