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/ui/views/omnibox/omnibox_view_views.cc

Issue 29883002: Attempt to re-land FocusManager removal from Aura. (Closed) Base URL: svn://svn.chromium.org/chrome/trunk/src
Patch Set: Disable test with note. Created 7 years, 2 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/ui/views/omnibox/omnibox_view_views.h" 5 #include "chrome/browser/ui/views/omnibox/omnibox_view_views.h"
6 6
7 #include "base/command_line.h" 7 #include "base/command_line.h"
8 #include "base/logging.h" 8 #include "base/logging.h"
9 #include "base/strings/string_util.h" 9 #include "base/strings/string_util.h"
10 #include "base/strings/utf_string_conversions.h" 10 #include "base/strings/utf_string_conversions.h"
(...skipping 37 matching lines...) Expand 10 before | Expand all | Expand 10 after
48 #include "ui/views/layout/fill_layout.h" 48 #include "ui/views/layout/fill_layout.h"
49 #include "ui/views/views_delegate.h" 49 #include "ui/views/views_delegate.h"
50 #include "ui/views/widget/widget.h" 50 #include "ui/views/widget/widget.h"
51 #include "url/gurl.h" 51 #include "url/gurl.h"
52 52
53 #if defined(OS_WIN) 53 #if defined(OS_WIN)
54 #include "chrome/browser/browser_process.h" 54 #include "chrome/browser/browser_process.h"
55 #endif 55 #endif
56 56
57 #if defined(USE_AURA) 57 #if defined(USE_AURA)
58 #include "ui/aura/focus_manager.h" 58 #include "ui/aura/client/focus_client.h"
59 #include "ui/aura/root_window.h" 59 #include "ui/aura/root_window.h"
60 #include "ui/compositor/layer.h" 60 #include "ui/compositor/layer.h"
61 #endif 61 #endif
62 62
63 namespace { 63 namespace {
64 64
65 // Stores omnibox state for each tab. 65 // Stores omnibox state for each tab.
66 struct OmniboxState : public base::SupportsUserData::Data { 66 struct OmniboxState : public base::SupportsUserData::Data {
67 static const char kKey[]; 67 static const char kKey[];
68 68
(...skipping 888 matching lines...) Expand 10 before | Expand all | Expand 10 after
957 const string16 text(GetClipboardText()); 957 const string16 text(GetClipboardText());
958 if (!text.empty()) { 958 if (!text.empty()) {
959 // Record this paste, so we can do different behavior. 959 // Record this paste, so we can do different behavior.
960 model()->on_paste(); 960 model()->on_paste();
961 // Force a Paste operation to trigger the text_changed code in 961 // Force a Paste operation to trigger the text_changed code in
962 // OnAfterPossibleChange(), even if identical contents are pasted. 962 // OnAfterPossibleChange(), even if identical contents are pasted.
963 text_before_change_.clear(); 963 text_before_change_.clear();
964 InsertOrReplaceText(text); 964 InsertOrReplaceText(text);
965 } 965 }
966 } 966 }
OLDNEW
« no previous file with comments | « ash/wm/panels/panel_layout_manager.cc ('k') | content/browser/web_contents/web_contents_view_aura_browsertest.cc » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698