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

Side by Side Diff: Source/web/ExternalPopupMenu.cpp

Issue 61773005: Rename WebKit namespace to blink (Closed) Base URL: svn://svn.chromium.org/blink/trunk
Patch Set: Created 7 years, 1 month 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
« no previous file with comments | « Source/web/ExternalPopupMenu.h ('k') | Source/web/FindInPageCoordinates.h » ('j') | no next file with comments »
Toggle Intra-line Diffs ('i') | Expand Comments ('e') | Collapse Comments ('c') | Show Comments Hide Comments ('s')
OLDNEW
1 /* 1 /*
2 * Copyright (C) 2010 Google Inc. All rights reserved. 2 * Copyright (C) 2010 Google Inc. All rights reserved.
3 * 3 *
4 * Redistribution and use in source and binary forms, with or without 4 * Redistribution and use in source and binary forms, with or without
5 * modification, are permitted provided that the following conditions are 5 * modification, are permitted provided that the following conditions are
6 * met: 6 * met:
7 * 7 *
8 * * Redistributions of source code must retain the above copyright 8 * * Redistributions of source code must retain the above copyright
9 * notice, this list of conditions and the following disclaimer. 9 * notice, this list of conditions and the following disclaimer.
10 * * Redistributions in binary form must reproduce the above 10 * * Redistributions in binary form must reproduce the above
(...skipping 27 matching lines...) Expand all
38 #include "core/frame/Frame.h" 38 #include "core/frame/Frame.h"
39 #include "core/frame/FrameView.h" 39 #include "core/frame/FrameView.h"
40 #include "core/platform/PopupMenuClient.h" 40 #include "core/platform/PopupMenuClient.h"
41 #include "platform/geometry/FloatQuad.h" 41 #include "platform/geometry/FloatQuad.h"
42 #include "platform/geometry/IntPoint.h" 42 #include "platform/geometry/IntPoint.h"
43 #include "platform/text/TextDirection.h" 43 #include "platform/text/TextDirection.h"
44 #include "public/platform/WebVector.h" 44 #include "public/platform/WebVector.h"
45 45
46 using namespace WebCore; 46 using namespace WebCore;
47 47
48 namespace WebKit { 48 namespace blink {
49 49
50 ExternalPopupMenu::ExternalPopupMenu(Frame& frame, PopupMenuClient* popupMenuCli ent, WebViewClient* webViewClient) 50 ExternalPopupMenu::ExternalPopupMenu(Frame& frame, PopupMenuClient* popupMenuCli ent, WebViewClient* webViewClient)
51 : m_popupMenuClient(popupMenuClient) 51 : m_popupMenuClient(popupMenuClient)
52 , m_frameView(frame.view()) 52 , m_frameView(frame.view())
53 , m_webViewClient(webViewClient) 53 , m_webViewClient(webViewClient)
54 , m_webExternalPopupMenu(0) 54 , m_webExternalPopupMenu(0)
55 { 55 {
56 } 56 }
57 57
58 ExternalPopupMenu::~ExternalPopupMenu() 58 ExternalPopupMenu::~ExternalPopupMenu()
(...skipping 127 matching lines...) Expand 10 before | Expand all | Expand 10 after
186 186
187 info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().heigh t(); 187 info->itemHeight = m_popupMenuClient->menuStyle().font().fontMetrics().heigh t();
188 info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font(). size()); 188 info->itemFontSize = static_cast<int>(m_popupMenuClient->menuStyle().font(). size());
189 info->selectedIndex = m_popupMenuClient->selectedIndex(); 189 info->selectedIndex = m_popupMenuClient->selectedIndex();
190 info->rightAligned = m_popupMenuClient->menuStyle().textDirection() == WebCo re::RTL; 190 info->rightAligned = m_popupMenuClient->menuStyle().textDirection() == WebCo re::RTL;
191 info->allowMultipleSelection = m_popupMenuClient->multiple(); 191 info->allowMultipleSelection = m_popupMenuClient->multiple();
192 info->items.swap(items); 192 info->items.swap(items);
193 } 193 }
194 194
195 } 195 }
OLDNEW
« no previous file with comments | « Source/web/ExternalPopupMenu.h ('k') | Source/web/FindInPageCoordinates.h » ('j') | no next file with comments »

Powered by Google App Engine
This is Rietveld 408576698