[chromium-dev] chrome.sln switched to gyp (sort of)

2009-06-01 Thread Bradley Nelson
Hi All,
We've just landed a change to switch chrome.sln to be gyp generated.
This was accomplished with a bit of a temporary cheat.
The now generated chrome.sln continues to refer to the checked-in vcprojs.
This change will allow us to switch them over one by one (and will let us
roll out most of the major components which are working gyp generated,
without being blocked on the few that aren't).

This has a few weird (temporary) ramifications:

1. Changes to modules at the chrome module level still need to be made in
the checked in vcprojs, however, dependency information now comes from
chrome.gyp and installer/installer.gyp.
2. The future layout of chrome.sln is reflected now (even though the
projects are in their old locations). Do let me know if there are any
problems with the new layout (or if I missed something). The new layout
mimics the directory structure, with the one compression that lone vcprojs
in a directory with the same name get brought up a level.

With any luck we'll be able to land vcprojs gradually throughout the week.
We don't plan to bug everyone with announcements on each change, so here's a
good rule of thumb:
Since you are already updating the gyp files to keep the other platforms
working, take note of whether targets you change in chrome.gyp or
installer.gyp contain the setting: 'msvs_existing_vcproj'. These will
require you to change the checked in vcproj file, others will not.

Be sure to let us (sgk and I) know if you notice any regressions during this
process.

-BradN

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread mr


> Great to hear!  We use the media player to test and debug our playback code
> without having to build all of Chrome.  It's a little rough around the edges
> :)

I compiled in VS2008 and Vista. It has shortest startup delay when I
ran it from both command line and open file Dlg.

 Great job indeed!

Mary
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Darin Fisher
On Mon, Jun 1, 2009 at 11:19 PM, Peter Kasting wrote:

> On Mon, Jun 1, 2009 at 11:10 PM, Lucius Fox wrote:
>
>> 1. If I enter some values in form elements, and then load a new page
>> (before i clicked submit) , and the click back. Does that mean the
>> values I entered in each form element will be all gone? (since
>> chromium does not keep track)?
>
>
> Why don't you test it?  You'll learn more and remember better.
>

We should restore form values just like other browsers.  If we do not, then
it is a bug.



>
> 2. Does chromium cache JavaScript native code (since it compiles JS
>> files to native code)?
>
>
> Not generally, to my knowledge.
>

V8 does have a cache for compiled scripts!




>
> 3. What about JavaScript context (e.g. values of
>> JavaScript can changed due to user interaction) of that page, Does it
>> save in memory too?
>>
>
> Again, why don't you test it?  This is pretty easy to test too.
>

This is not saved.  Other browsers only save this information sometimes as a
side-effect of navigating back to a page that still exists in the page
cache.  You cannot rely on a back navigation hitting the page cache in any
browser since the page cache is finite in size.

-Darin

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Peter Kasting
On Mon, Jun 1, 2009 at 11:10 PM, Lucius Fox  wrote:

> 1. If I enter some values in form elements, and then load a new page
> (before i clicked submit) , and the click back. Does that mean the
> values I entered in each form element will be all gone? (since
> chromium does not keep track)?


Why don't you test it?  You'll learn more and remember better.

2. Does chromium cache JavaScript native code (since it compiles JS
> files to native code)?


Not generally, to my knowledge.

3. What about JavaScript context (e.g. values of
> JavaScript can changed due to user interaction) of that page, Does it
> save in memory too?


Again, why don't you test it?  This is pretty easy to test too.

PK

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Lucius Fox

On Mon, Jun 1, 2009 at 11:00 PM, Peter Kasting  wrote:
> On Mon, Jun 1, 2009 at 10:57 PM, Lucius Fox  wrote:
>>
>> what do you mean when you said "cached content should always be
>> preferred even if it is stale"?
>
> If the resource is in the cache, it is used, regardless of whether it has
> expired.
>>
>> Does Chrome still issue HTTP requests and check if the cache control
>> of HTTP response before it pull the data from content cache?
>
> No.
>>
>> Or how is navigating back different from load 1 page, kill the browser
>> (assume the page content is now saved in cache) and start the browser
>> again and reload the same page?
>
> In this case the browser will do a network transaction for resources in the
> cache which have expired.

Thank you.  Sorry 3 more questions:

1. If I enter some values in form elements, and then load a new page
(before i clicked submit) , and the click back. Does that mean the
values I entered in each form element will be all gone? (since
chromium does not keep track)?

2. Does chromium cache JavaScript native code (since it compiles JS
files to native code)? When users load a new page and then hit back,
does chromium just use already compiled native code (instead of
compiling it from JS files again)?

3. "page cache, which holds the DOM of recently visited pages in a
frozen state". What about JavaScript context (e.g. values of
JavaScript can changed due to user interaction) of that page, Does it
save in memory too?
What about CSS properties values? Are those holding in memory as well?


> PK

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Peter Kasting
On Mon, Jun 1, 2009 at 10:57 PM, Lucius Fox  wrote:

> what do you mean when you said "cached content should always be
> preferred even if it is stale"?


If the resource is in the cache, it is used, regardless of whether it has
expired.

Does Chrome still issue HTTP requests and check if the cache control
> of HTTP response before it pull the data from content cache?


No.

Or how is navigating back different from load 1 page, kill the browser
> (assume the page content is now saved in cache) and start the browser
> again and reload the same page?


In this case the browser will do a network transaction for resources in the
cache which have expired.

PK

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Lucius Fox

On Mon, Jun 1, 2009 at 10:50 PM, Darin Fisher  wrote:
> When navigating back, we reload the page.  However, we set a flag to
> indicate that cached content should always be preferred even if it is stale.

Thank you.

But what do you mean when you said "cached content should always be
preferred even if it is stale"?
Does Chrome still issue HTTP requests and check if the cache control
of HTTP response before it pull the data from content cache?  If yes,
how is that 'flag' change anything?

Or how is navigating back different from load 1 page, kill the browser
(assume the page content is now saved in cache) and start the browser
again and reload the same page?




> That is consistent with all other major browsers with one
> exception:  some of the other major browsers implement a page cache, which holds the DOM of
> recently visited pages in a frozen state so that they can be quickly
> restored when navigating back or forward.  Such browsers behave similarly to
> Chrome when the page you are navigating back to is not found in the page
> cache.
> -Darin
>
>
> On Mon, Jun 1, 2009 at 2:23 PM, Lucius Fox  wrote:
>>
>> Hi,
>>
>> Lets say i have 1 tab and I load 3 sites.
>> 1. www.cnn.com
>> 2. www.yahoo.com
>> 3. www.aol.com  <-- the current page
>>
>> What happens when users click 'Back'?
>> does chromium keep www.yahoo.com/www.cnn.com in memory? if yes, how
>> many pages it can keep in memory?
>> Or chromium just reload the page from scratch ? (just like user type
>> 'www.yahoo.com' again in the URL box? (and it appears faster since
>> some files (e.g. images/js files) are already in cache?
>>
>> Thank you for any explanation.
>>
>> >>
>
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium handle 'Back' functionality

2009-06-01 Thread Darin Fisher
When navigating back, we reload the page.  However, we set a flag to
indicate that cached content should always be preferred even if it is stale.
That is consistent with all other major browsers with one
exception:  some of the other major browsers implement a page cache,
which holds the DOM of
recently visited pages in a frozen state so that they can be quickly
restored when navigating back or forward.  Such browsers behave similarly to
Chrome when the page you are navigating back to is not found in the page
cache.

-Darin



On Mon, Jun 1, 2009 at 2:23 PM, Lucius Fox  wrote:

>
> Hi,
>
> Lets say i have 1 tab and I load 3 sites.
> 1. www.cnn.com
> 2. www.yahoo.com
> 3. www.aol.com  <-- the current page
>
> What happens when users click 'Back'?
> does chromium keep www.yahoo.com/www.cnn.com in memory? if yes, how
> many pages it can keep in memory?
> Or chromium just reload the page from scratch ? (just like user type
> 'www.yahoo.com' again in the URL box? (and it appears faster since
> some files (e.g. images/js files) are already in cache?
>
> Thank you for any explanation.
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Text translate API proposal

2009-06-01 Thread Alex Russell
I understand the proposal, and am suggesting that having content  
scripts might be a saner thing to do if they need to do less custom  
stuff to get the job done. The API that locates the stuff could be  
separate, but the transformation code feels like a natural content- 
script task and one that I'd be pained to see another (parallel) API  
for.

Regards

On Jun 1, 2009, at 6:14 PM, Erik Kay wrote:

> This proposal is specifically not to fix the DOM, but to exist  
> outside of it without having to inject scripts into the page.
>
> Erik
>
>
> On Mon, Jun 1, 2009 at 4:33 PM, Alex Russell   
> wrote:
> On Jun 1, 2009, at 12:00 PM, Erik Kay wrote:
>
> Similar to the translate, this feature could be used to support  
> sites that use non-standard character set / font combinations (some  
> indic websites depend on downloadable fonts and custom character  
> sets).
>
> Also, if the API allowed styling of the text as opposed to just  
> replacing it, then I could imagine that it could be used for  
> interesting markup / highlighting (highlighting searched words,  
> marking up grammar errors, auto-likifying, etc.).  Perhaps this  
> would defeat part of the point of this approach to an API.
>
> I guess I keep getting hung up on why this isn't execCommand() on a  
> range. The hard bit is finding the text to "range-ify", and I think  
> that bit might make sense as a new API, but in terms of actually  
> transforming things, ISTM that we should go fix the DOM where isn't  
> not good enough (yet).
>
> Regards
>


--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Feature freeze for our next beta branch coming this Friday

2009-06-01 Thread Anthony LaForge
In our efforts to release early and release often we will have a feature
freeze this Friday (June 5th, 2009) for Mstone:3, prior to cutting our
anticipated beta branch.  Please focus your energies on closing out high
priority (0, 1, 2) mstone:3 issues.  If all is successful, this branch
release will start it's life on the Dev channel next week and as stability
permits will be promoted accordingly (official beta and stable releases TBD
at a later time).
Kind Regards,

Anthony Laforge
Chrome Program Manager
Mountain View, CA

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread avcoder


On Jun 2, 12:42 am, Andrew Scherkus  wrote:
>
> The way I usually build the player is to run gyp (solution file generator)
> on /media/media.gyp, which generates /media/media.sln
>
> gyp is located under /tools/gyp/gyp.bat
>

Get it!
Thanks a lot
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] API design, class and function naming

2009-06-01 Thread Benjamin

I recently went though and watch the various tech talk videos that
were put up.  In a number of cases the speaker mentioned how the
naming of a function/class could have been better or that it could be
confused with something else.  This was best highlighted in
"Chromium's multi-process architecture" when talking about RenderView
and the many different ways that developers might confuse that with
something else including WebKit's own RenderView.  Recently the "The
Little Manual of API Design" got put up online (pdf)
http://chaos.troll.no/~shausman/api-design/api-design.pdf  It is a
really good (and short) book and I highly recommend it.  It discusses
various ways to improve your API which is always a good thing
especially for a project where you want to encourage outside
contribution.

-Benjamin Meyer

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Text translate API proposal

2009-06-01 Thread Alex Russell

On Jun 1, 2009, at 12:00 PM, Erik Kay wrote:

> Similar to the translate, this feature could be used to support  
> sites that use non-standard character set / font combinations (some  
> indic websites depend on downloadable fonts and custom character  
> sets).
>
> Also, if the API allowed styling of the text as opposed to just  
> replacing it, then I could imagine that it could be used for  
> interesting markup / highlighting (highlighting searched words,  
> marking up grammar errors, auto-likifying, etc.).  Perhaps this  
> would defeat part of the point of this approach to an API.

I guess I keep getting hung up on why this isn't execCommand() on a  
range. The hard bit is finding the text to "range-ify", and I think  
that bit might make sense as a new API, but in terms of actually  
transforming things, ISTM that we should go fix the DOM where isn't  
not good enough (yet).

Regards

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] [linux] nested messageloop patch landed

2009-06-01 Thread Evan Martin

Antoine wrote a patch to make nested message loops work on Linux.
  http://codereview.chromium.org/115812

It's always a bit scary touching the message loop code, but this will
fix two real issues we know about:
 - file save dialogs crash on some subset of platforms
 - copy and paste crashers

My plan: I am going to land this patch, see if it does anything
horrible in the next few days or two.
So if you suddenly start getting new crashers, let me know.  We can
always back it out.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] How does chromium handle 'Back' functionality

2009-06-01 Thread Lucius Fox

Hi,

Lets say i have 1 tab and I load 3 sites.
1. www.cnn.com
2. www.yahoo.com
3. www.aol.com  <-- the current page

What happens when users click 'Back'?
does chromium keep www.yahoo.com/www.cnn.com in memory? if yes, how
many pages it can keep in memory?
Or chromium just reload the page from scratch ? (just like user type
'www.yahoo.com' again in the URL box? (and it appears faster since
some files (e.g. images/js files) are already in cache?

Thank you for any explanation.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] CL 115977 will require clobber build

2009-06-01 Thread 王重傑
I will be checking in a /D change to essential.vsprops that requires a
clobber build.

The change is to enable TR1 for VS2008 SP1 so that gmock can compile on that
platform.

I'm running through the clobber builds locally right now, and will probalby
submit the change tomorrow morning.  Will send out an update with the
revision number when it's it's landed.

For those interested, the CL is here:

   http://codereview.chromium.org/115977


-Albert

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Personnal try server

2009-06-01 Thread Marc-Antoine Ruel
After a long time, here is the documentation:

http://dev.chromium.org/developers/testing/chromium-build-infrastructure/getting-the-buildbot-source

M-A

On Mon, May 18, 2009 at 2:15 PM, Erik Kay  wrote:

> Do you have info anywhere on how to set up your own local try server?  I've
> got a mac, but it's a pain to manually update, patch, build, etc. between
> multiple machines.  My own try server would let me iterate more rapidly.
> Erik
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Text translate API proposal

2009-06-01 Thread Erik Kay
Similar to the translate, this feature could be used to support sites that
use non-standard character set / font combinations (some indic websites
depend on downloadable fonts and custom character sets).

Also, if the API allowed styling of the text as opposed to just replacing
it, then I could imagine that it could be used for interesting markup /
highlighting (highlighting searched words, marking up grammar errors,
auto-likifying, etc.).  Perhaps this would defeat part of the point of this
approach to an API.
Erik


On Mon, Jun 1, 2009 at 11:51 AM, Aaron Boodman  wrote:

>
> On Mon, Jun 1, 2009 at 11:46 AM, Evan Martin  wrote:
> > This feels kinda one-off-y to me.  Is there any use of this *other*
> > than running through Google Translate?  I worry about adding a lot of
> > API surface area for little gain.
>
> That is one of the things I was concerned about too. I thought about
> factoring out the code that finds the blocks. There are other use
> cases near there. But for actually modifying the text nodes -- no, I
> can't think of any other use cases.
>
> - a
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Text translate API proposal

2009-06-01 Thread Aaron Boodman

On Mon, Jun 1, 2009 at 11:46 AM, Evan Martin  wrote:
> This feels kinda one-off-y to me.  Is there any use of this *other*
> than running through Google Translate?  I worry about adding a lot of
> API surface area for little gain.

That is one of the things I was concerned about too. I thought about
factoring out the code that finds the blocks. There are other use
cases near there. But for actually modifying the text nodes -- no, I
can't think of any other use cases.

- a

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: [extensions] Text translate API proposal

2009-06-01 Thread Evan Martin

This feels kinda one-off-y to me.  Is there any use of this *other*
than running through Google Translate?  I worry about adding a lot of
API surface area for little gain.

On Mon, Jun 1, 2009 at 11:29 AM, Aaron Boodman  wrote:
>
> Some people have expressed interest in implementing a "translate this
> page" feature as an extension. This can be done as a content script
> today, but it requires heavy and tricky modification of the DOM which
> could introduce compat and performance problems.
>
> Because of these problems, I'm exploring the idea of implementing a
> higher-level API exposed to the extension process. I'd love feedback
> on the idea:
>
> http://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/text-translate-api
>
>
> - a
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] [extensions] Text translate API proposal

2009-06-01 Thread Aaron Boodman

Some people have expressed interest in implementing a "translate this
page" feature as an extension. This can be done as a content script
today, but it requires heavy and tricky modification of the DOM which
could introduce compat and performance problems.

Because of these problems, I'm exploring the idea of implementing a
higher-level API exposed to the extension process. I'd love feedback
on the idea:

http://sites.google.com/a/chromium.org/dev/developers/design-documents/extensions/text-translate-api


- a

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] updating mouse pointer state

2009-06-01 Thread Evan Stade

Webkit updates the mouse pointer state (changes the cursor,
hover-over, etc.) whenever it gets a mouse move event. (It should also
do so when getting a scroll event, but doesn't, but that's a different
matter.) However, it only gets mouse move events when it has focus. If
you right click, a context menu pops up and the render view loses
focus. Currently on linux if you move the cursor over some area that
should change the cursor (say an edit area), then click, the context
menu goes away but the cursor stays the same as it was before the
context menu was popped up. If you move the mouse slightly, it will
refresh the cursor and other bits of cursor-position-related state.

I have a (some would say hacky) fix for this, which is to synthesize a
mouse move event and send it to the renderer every time it gains
focus: http://codereview.chromium.org/113987

On the other hand, this doesn't come up on Windows because the render
view receives a (real) mouse move event when the render view regains
focus *even if the user actually hasn't touched the mouse* (try
dismissing the context menu by pressing escape). So,

Q: does anyone know where this mouse move event comes from?
Q: is there a better fix?

-- Evan Stade

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Zak

So I tried putting the quotes around that string first, it was a quick
easy fix. It works! Except the URL that's pasted into the body is:

"chrome-extension://0002/
my_toolstrip.html"

So that's odd, but it makes sense in a way. How to fix, not entirely
certain. Tried replacing "document.title" and "document.location" with
"tab.title" and "tab.location" with no results, the button ceases to
work at that point.

And trying that div and script you posted actually didn't work, Aaron.
Both when put into an html file that's called by my_toolstrip and when
in my-toolstrip itself. Button is there, nothing happens on a press.
Could it be the tab.url and tab.title - I think I need something else
to make those work properly.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: An Introduction and a question

2009-06-01 Thread sidchat

The Editor in WebCore (Editor.cpp), which is a part of WebKit, asks
for the spelling of a word in line 1474. The spelling-check is
provided by us (Chromium) through the "glue" - in particular,
editor_client_impl.cc in method checkSpellingOfString. Now, this guy
uses a WebViewDelegate object to send message through the IPC to the
spellchecker residing in the browser process through
RenderView::SpellCheck (render_view.cc). This message is picked by
resource_message_filter.cc, which uses the function OnSpellCheck to
now formally ask the spellchecker object to tell it if the spelling is
right or wrong. As you pointed out, this has to be done in the IO
thread. Once it gets the answer, it sends a message back through IPC -
WebCore gets the answer, the editor is happy, and now you see an
underline.

This is the basic path, but you are most welcome to ping me, or drop
by my desk for questions/ideas. Also, Brett (brettw) is the guru of
this architecture, so you should definitely pass by him too for ideas.

-Sid

On May 30, 9:55 am, Evan Martin  wrote:
> From a quick glance, it appears that grepping the code for all
> instances of the word "spell" turns up all the related files with only
> a couple of unrelated bits.  In particular, for IPC stuff the files
> all have "render" in their name:
>
> $ git grep -l spell -- '*render*.cc' '*render*.h'
> chrome/browser/renderer_host/browser_render_process_host.cc
> chrome/browser/renderer_host/render_process_host.h
> chrome/browser/renderer_host/resource_message_filter.cc
> chrome/browser/renderer_host/resource_message_filter.h
> chrome/browser/tab_contents/render_view_context_menu.cc
> chrome/common/render_messages.h
> chrome/common/render_messages_internal.h
> chrome/renderer/render_view.cc
> chrome/renderer/render_view.h
>
>
>
> On Thu, May 28, 2009 at 1:55 PM, Paul Wicks  wrote:
> > Hello Chromium Developers!
>
> > My name is Paul Wicks and I am one of the students working for this project
> > as part of Google's Summer of Code (Mike Pinkerton is my mentor).
> > Specifically, I am working on implementing support for the OSX
> > dictionary/spellchecker in Chromium. There is a blog of my progress at
> >http://pwicks-bloggingchrome.blogspot.com/,although there really isn't any
> > content at the moment. Just thought I'd introduce myself.
>
> > Well, know that I have your attention, I do have one question. I've been
> > looking at the spellchecker code to try and figure out how it works/what I
> > need to do to make it work in the OSX port. I've looked at spellchecker.cc
> > and its associated files in /chrome/browser/ and everything there makes
> > sense more or less, but I'm having a little trouble figuring out where calls
> > to the spellchecker come from. I'd guess this is something that would happen
> > over IPC, given that the spellchecker lives on the I/O thread and the
> > content of tabs will live in their own processes. If anyone could point me
> > in the right direction to understand how this whole process works, that
> > would be great.
>
> > -Paul Wicks
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Where is the code which chromium display the loading status

2009-06-01 Thread Wan-Teh Chang

On Mon, Jun 1, 2009 at 9:12 AM, Mike Pinkerton  wrote:
>
> src/chrome/browser/cocoa/status_bubble_mac.mm is the UI that displays
> the message. The message itself comes from the cross-platform code,
> but you can probably trace that by setting some breakpoints in the UI
> code.

Yes, also set a breakpoint in HttpNetworkTransaction::GetLoadState()
in src/net/http/http_network_transaction.cc.  That's the ultimate source
of the load states.

Wan-Teh

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Aaron Boodman

[giving up keeping this on chromium-discuss]

Aha, I didn't look closely enough at the bookmarklet to see it was
trying to get the title and url of the current page. The first pass of
the tab API is complete now (yay rafaelw!). So you can do something
like:

chrome.tabs.getCurrent(null, function(tab) {
 // do something with tab.title and tab.url
});

So I guess the complete (untested) code would look like:

Gmail
This

function gmailThis() {
  chrome.tabs.getSelected(null, function(tab) {
var url = "http://mail.google.com/mail/?ui=1&view=cm&fs=1&tf=1&to=&su="; +
  encodeURIComponent(tab.title) + "&body=" +
  encodeURIComponent(tab.url);
var w = window.open(url, 'addwindow',
,'status=no,toolbar=no,width=575,height=545,resizable=yes');
setTimeout(function() {
  w.focus();
}, 200);
  });
}


On Mon, Jun 1, 2009 at 10:28 AM, Mohamed Mansour  wrote:
> Aaron, correct, but doesn't each extension run in its own page? So if you
> execute that onclick it will think the document.title and document.url is
> the extension page itself. Hence,
> chrome-extension:///hello_gmail.html
> But the tabs API isn't complete (I assume, unless its a bug) so there is no
> way to get the current selectedTab as I explained in the previous email.
> That Tab struct has the url/title which is needed to make it work as an
> extension.
> -- Mohamed Mansour
>
>
> On Mon, Jun 1, 2009 at 12:43 PM, Aaron Boodman  wrote:
>>
>> There is a bug in the code. The string %20250 needs to have single
>> quotes around it. If you add that, it works.
>>
>> But there are better ways to write this since you're not constrained
>> to fit it all into a single javascript statement like you are with
>> bookmarklets. You can learn how by just doing some quick searches for
>> HTML, JavaScript, and onclick. There are many online tutorials.
>>
>> - a
>>
>> On Mon, Jun 1, 2009 at 9:34 AM, Zak  wrote:
>> >
>> > Mohamed Mansour posted some code too, and suggested that I should use
>> > the Tabs API to accomplish this, but that it is incomplete. I don't
>> > really know how to utilize the code he posted.
>> >
>> >
>> >
>> >
>> > On Jun 1, 12:22 pm, Aaron Boodman  wrote:
>> >> bcc: chromium-dev
>> >> cc: chromium-discuss
>> >>
>> >> Can you send the code for the complete toolstrip?
>> >>
>> >> - a
>> >>
>> >>
>> >>
>> >> On Sun, May 31, 2009 at 4:57 PM, Zak  wrote:
>> >>
>> >> > Hi,
>> >>
>> >> > I'm really not a coding person, but I followed the documentation
>> >> > here:
>> >>
>> >> >http://dev.chromium.org/developers/design-documents/extensions/howto
>> >>
>> >> > and set up an extension. Instead of hello-world.html I put an html
>> >> > file containing a script (a gmail-this-page bookmarklet). The code is
>> >> > below:
>> >>
>> >> > [code]
>> >> > javascript:(function(){m='http://mail.google.com/mail/?
>> >> > ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
>> >> > +'&body='+encodeURIComponent(document.location);w=window.open
>> >> >
>> >> > (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');s
>> >> > etTimeout
>> >> > (function(){w.focus();},%20250);})();
>> >> > [/code]
>> >>
>> >> > When I click the extension on the bottom bar, it just opens up an
>> >> > html
>> >> > page with that code written in plain text. Obviously I'm missing some
>> >> > crucial step, and since I don't have a background in coding or
>> >> > programming of any sort, I'm pretty lost. Evidently putting the
>> >> > javascript in an html file is a wrong move - a different filetype
>> >> > maybe?
>> >>
>> >> > Thanks. And ignore me if I'm wasting your time or whatever, I realize
>> >> > I'm some newbie guy asking probably a dumb question, but I'd
>> >> > appreciate any help getting this simple thing working.
>> > >
>> >
>>
>> >>
>
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Aaron Boodman

There is a bug in the code. The string %20250 needs to have single
quotes around it. If you add that, it works.

But there are better ways to write this since you're not constrained
to fit it all into a single javascript statement like you are with
bookmarklets. You can learn how by just doing some quick searches for
HTML, JavaScript, and onclick. There are many online tutorials.

- a

On Mon, Jun 1, 2009 at 9:34 AM, Zak  wrote:
>
> Mohamed Mansour posted some code too, and suggested that I should use
> the Tabs API to accomplish this, but that it is incomplete. I don't
> really know how to utilize the code he posted.
>
>
>
>
> On Jun 1, 12:22 pm, Aaron Boodman  wrote:
>> bcc: chromium-dev
>> cc: chromium-discuss
>>
>> Can you send the code for the complete toolstrip?
>>
>> - a
>>
>>
>>
>> On Sun, May 31, 2009 at 4:57 PM, Zak  wrote:
>>
>> > Hi,
>>
>> > I'm really not a coding person, but I followed the documentation
>> > here:
>>
>> >http://dev.chromium.org/developers/design-documents/extensions/howto
>>
>> > and set up an extension. Instead of hello-world.html I put an html
>> > file containing a script (a gmail-this-page bookmarklet). The code is
>> > below:
>>
>> > [code]
>> > javascript:(function(){m='http://mail.google.com/mail/?
>> > ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
>> > +'&body='+encodeURIComponent(document.location);w=window.open
>> > (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');s
>> >  etTimeout
>> > (function(){w.focus();},%20250);})();
>> > [/code]
>>
>> > When I click the extension on the bottom bar, it just opens up an html
>> > page with that code written in plain text. Obviously I'm missing some
>> > crucial step, and since I don't have a background in coding or
>> > programming of any sort, I'm pretty lost. Evidently putting the
>> > javascript in an html file is a wrong move - a different filetype
>> > maybe?
>>
>> > Thanks. And ignore me if I'm wasting your time or whatever, I realize
>> > I'm some newbie guy asking probably a dumb question, but I'd
>> > appreciate any help getting this simple thing working.
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread Andrew Scherkus
On Mon, Jun 1, 2009 at 7:33 AM, avcoder  wrote:

>
>
>
> On May 29, 5:36 pm, mr  wrote:
> > Hi
> >
> > I  compiled the media project, and run player.
>
> How do you compile the player?
>
> I open chrome.sln by VS2005, It seems that media_player.vcproj is not
> included in chrome.sln
>
> I get a lot of link errors if I build media_player.vcproj manually


The way I usually build the player is to run gyp (solution file generator)
on /media/media.gyp, which generates /media/media.sln

gyp is located under /tools/gyp/gyp.bat

Andrew


>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread Andrew Scherkus
On Mon, Jun 1, 2009 at 1:36 AM, mr  wrote:

>
>
> I did as your instructions, and now It works!
> Thanks!


Great to hear!  We use the media player to test and debug our playback code
without having to build all of Chrome.  It's a little rough around the edges
:)

Andrew


>
>
> Mary
>
> On May 31, 10:33 pm, Andrew Scherkus  wrote:
> > Currently you need to build your own FFmpeg binaries and have them
> present
> > alongside the exe.
> > You need to use mingw to build FFmpeg.  The version we use and
> instructions
> > can be found here:
> http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/mingw/
> >
> > And our FFmpeg source code can be found here:
> http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/ffmpeg/
> >
> > The README.chromium files should explain everything you need to know.
>  There
> > are also some known issues with mingw on Vista 64-bit systems.
> >
> > Andrew
> >
> >
> >
> > On Fri, May 29, 2009 at 2:36 AM, mr  wrote:
> >
> > > Hi
> >
> > > I  compiled the media project, and run player.
> > > when I opened a video file (.mp4), it shows can't open movie
> > > from: 
> >
> > > What codecs are supported?
> >
> > > Thanks
> > > Mary- Hide quoted text -
> >
> > - Show quoted text -
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Zak

Mohamed Mansour posted some code too, and suggested that I should use
the Tabs API to accomplish this, but that it is incomplete. I don't
really know how to utilize the code he posted.




On Jun 1, 12:22 pm, Aaron Boodman  wrote:
> bcc: chromium-dev
> cc: chromium-discuss
>
> Can you send the code for the complete toolstrip?
>
> - a
>
>
>
> On Sun, May 31, 2009 at 4:57 PM, Zak  wrote:
>
> > Hi,
>
> > I'm really not a coding person, but I followed the documentation
> > here:
>
> >http://dev.chromium.org/developers/design-documents/extensions/howto
>
> > and set up an extension. Instead of hello-world.html I put an html
> > file containing a script (a gmail-this-page bookmarklet). The code is
> > below:
>
> > [code]
> > javascript:(function(){m='http://mail.google.com/mail/?
> > ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
> > +'&body='+encodeURIComponent(document.location);w=window.open
> > (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');s 
> > etTimeout
> > (function(){w.focus();},%20250);})();
> > [/code]
>
> > When I click the extension on the bottom bar, it just opens up an html
> > page with that code written in plain text. Obviously I'm missing some
> > crucial step, and since I don't have a background in coding or
> > programming of any sort, I'm pretty lost. Evidently putting the
> > javascript in an html file is a wrong move - a different filetype
> > maybe?
>
> > Thanks. And ignore me if I'm wasting your time or whatever, I realize
> > I'm some newbie guy asking probably a dumb question, but I'd
> > appreciate any help getting this simple thing working.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Zak

You mean what I made that failed to work? my_toolstrip.html just
contains:

http://mail.google.com/mail/?
ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
+'&body='+encodeURIComponent(document.location);w=window.open
(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout
(function(){w.focus();},%20250);})();">
  Gmail This


I thought that since a bookmarklet is a bookmark with code in the url
field, if I put that same code in the onclick (which usually points to
a url) it would work. But unfortunately the button shows up in the bar
but does not do anything when clicked.

The overall goal is to make an extension that when clicked will open
up gmail with the url of the page you're currently viewing in the body
of the email. Gmail This, basically. If you can think of a different
way to accomplish this other than mangling a bookmarklet, that is
beyond my level of knowledge.



On Jun 1, 12:22 pm, Aaron Boodman  wrote:
> bcc: chromium-dev
> cc: chromium-discuss
>
> Can you send the code for the complete toolstrip?
>
> - a
>
>
>
> On Sun, May 31, 2009 at 4:57 PM, Zak  wrote:
>
> > Hi,
>
> > I'm really not a coding person, but I followed the documentation
> > here:
>
> >http://dev.chromium.org/developers/design-documents/extensions/howto
>
> > and set up an extension. Instead of hello-world.html I put an html
> > file containing a script (a gmail-this-page bookmarklet). The code is
> > below:
>
> > [code]
> > javascript:(function(){m='http://mail.google.com/mail/?
> > ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
> > +'&body='+encodeURIComponent(document.location);w=window.open
> > (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');s 
> > etTimeout
> > (function(){w.focus();},%20250);})();
> > [/code]
>
> > When I click the extension on the bottom bar, it just opens up an html
> > page with that code written in plain text. Obviously I'm missing some
> > crucial step, and since I don't have a background in coding or
> > programming of any sort, I'm pretty lost. Evidently putting the
> > javascript in an html file is a wrong move - a different filetype
> > maybe?
>
> > Thanks. And ignore me if I'm wasting your time or whatever, I realize
> > I'm some newbie guy asking probably a dumb question, but I'd
> > appreciate any help getting this simple thing working.
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Creating a bookmarklet extension

2009-06-01 Thread Aaron Boodman

bcc: chromium-dev
cc: chromium-discuss

Can you send the code for the complete toolstrip?

- a

On Sun, May 31, 2009 at 4:57 PM, Zak  wrote:
>
> Hi,
>
> I'm really not a coding person, but I followed the documentation
> here:
>
> http://dev.chromium.org/developers/design-documents/extensions/howto
>
> and set up an extension. Instead of hello-world.html I put an html
> file containing a script (a gmail-this-page bookmarklet). The code is
> below:
>
> [code]
> javascript:(function(){m='http://mail.google.com/mail/?
> ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
> +'&body='+encodeURIComponent(document.location);w=window.open
> (m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout
> (function(){w.focus();},%20250);})();
> [/code]
>
> When I click the extension on the bottom bar, it just opens up an html
> page with that code written in plain text. Obviously I'm missing some
> crucial step, and since I don't have a background in coding or
> programming of any sort, I'm pretty lost. Evidently putting the
> javascript in an html file is a wrong move - a different filetype
> maybe?
>
> Thanks. And ignore me if I'm wasting your time or whatever, I realize
> I'm some newbie guy asking probably a dumb question, but I'd
> appreciate any help getting this simple thing working.
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: Where is the code which chromium display the loading status

2009-06-01 Thread Mike Pinkerton

src/chrome/browser/cocoa/status_bubble_mac.mm is the UI that displays
the message. The message itself comes from the cross-platform code,
but you can probably trace that by setting some breakpoints in the UI
code.

On Mon, Jun 1, 2009 at 12:05 PM, Daniel Dreiberg
 wrote:
> Hi,
> When i load chromium on MacOS, it has 'Waiting...', 'Contacting..' status
> displayed at the bottom of the browser.
> Can you please tell me where is the code which display that?
> Thank you.
>
> >
>



-- 
Mike Pinkerton
Mac Weenie
pinker...@google.com

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Where is the code which chromium display the loading status

2009-06-01 Thread Daniel Dreiberg
Hi,
When i load chromium on MacOS, it has 'Waiting...', 'Contacting..' status
displayed at the bottom of the browser.
Can you please tell me where is the code which display that?

Thank you.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: mingw build of chromium?

2009-06-01 Thread Marc-Antoine Ruel
I think simply searching the code is better than trying to maintain a
separate list:
http://www.google.com/search?q=site:src.chromium.org/svn/trunk+atlbase++-stdafx+-third_party&hl=en&filter=0

There no more use of ATL in src/base/ at least. The biggest part to get rid
of ATL will be replacing CComObjectRootEx and CWindowImpl.

M-A

On Sun, May 31, 2009 at 2:53 PM, Ben Goodger (Google) wrote:

>
> It'd be nice to have a wiki page that lists all our dependencies,
> including all the ATL sites. The number of ATL usages is dwindling as
> more of the native controls get re-done using the new framework which
> doesn't depend on ATL.
>
> -Ben
>
> On Sun, May 31, 2009 at 11:47 AM, Dan Kegel 
> wrote:
> >
> > Does anyone have tips for how to try building
> > chromium with mingw?
> > I know it's not expected to work (since we still
> > use ATL etc.),  but I'd like to try anyway, and
> > it'd be nice to not have to reinvent the wheel
> > if somebody's already figured out how to coax
> > gyp into outputting scons files that invoke mingw,
> > or whatever.
> >
> > FWIW, I see that there's a patch to v8 to enable building with mingw on
> windows,
> > http://code.google.com/p/v8/issues/detail?id=64
> > http://codereview.chromium.org/18309
> > - Dan
> >
> > >
> >
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread avcoder



On May 29, 5:36 pm, mr  wrote:
> Hi
>
> I  compiled the media project, and run player.

How do you compile the player?

I open chrome.sln by VS2005, It seems that media_player.vcproj is not
included in chrome.sln

I get a lot of link errors if I build media_player.vcproj manually
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Creating a bookmarklet extension

2009-06-01 Thread Zak

Hi,

I'm really not a coding person, but I followed the documentation
here:

http://dev.chromium.org/developers/design-documents/extensions/howto

and set up an extension. Instead of hello-world.html I put an html
file containing a script (a gmail-this-page bookmarklet). The code is
below:

[code]
javascript:(function(){m='http://mail.google.com/mail/?
ui=1&view=cm&fs=1&tf=1&to=&su='+encodeURIComponent(document.title)
+'&body='+encodeURIComponent(document.location);w=window.open
(m,'addwindow','status=no,toolbar=no,width=575,height=545,resizable=yes');setTimeout
(function(){w.focus();},%20250);})();
[/code]

When I click the extension on the bottom bar, it just opens up an html
page with that code written in plain text. Obviously I'm missing some
crucial step, and since I don't have a background in coding or
programming of any sort, I'm pretty lost. Evidently putting the
javascript in an html file is a wrong move - a different filetype
maybe?

Thanks. And ignore me if I'm wasting your time or whatever, I realize
I'm some newbie guy asking probably a dumb question, but I'd
appreciate any help getting this simple thing working.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: How does chromium load font during page rendering

2009-06-01 Thread Eric Seidel

Fonts are loaded when text is rendered.  FontDescription objects are
created and used to fetch Font objects from the FontCache which are
held off the RenderStyle for a RenderText node.  GyphPages are filled
lazily from the Font as glyphs are drawn.

Yes, we should have better documentation.  But sadly, WebKit doesn't.
You can always ask in #webkit on irc.webkit.org about pieces of WebKit
architecture.

Best advice is to just download and sniff around in WebKit code.  As
they say: "Use the the Source Luke!"

Look at things like PlatformFontData if you want to see how Skia,
CoreGraphics, etc. handle platform-specific font bits.  Font is the
class which knows how to answer all the questions like "how wide is
this gyph".

http://trac.webkit.org/browser/trunk/WebCore should have all the code
you care about.  It's possible that some of the platform/chromium
files you need are missing from WebKit's repository, for those you'd
have to look in:
http://src.chromium.org/viewvc/chrome/trunk/src/webkit/

-eric

On Mon, Jun 1, 2009 at 12:15 AM, Lucius Fox  wrote:
>
> Hi,
>
> Can you please point me to the code (for mac os) where chromium load
> font during page rendering?
> for example, chromium needs to load the font matrix for the font
> specified by css/html for text to measure how much of it can fit on 1
> line and wrap the rest for the next line?
>
> Thank you.
>
> >
>

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] Re: media player - can't open movie from: error

2009-06-01 Thread mr


I did as your instructions, and now It works!
Thanks!

Mary

On May 31, 10:33 pm, Andrew Scherkus  wrote:
> Currently you need to build your own FFmpeg binaries and have them present
> alongside the exe.
> You need to use mingw to build FFmpeg.  The version we use and instructions
> can be found 
> here:http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/mingw/
>
> And our FFmpeg source code can be found 
> here:http://src.chromium.org/viewvc/chrome/trunk/deps/third_party/ffmpeg/
>
> The README.chromium files should explain everything you need to know.  There
> are also some known issues with mingw on Vista 64-bit systems.
>
> Andrew
>
>
>
> On Fri, May 29, 2009 at 2:36 AM, mr  wrote:
>
> > Hi
>
> > I  compiled the media project, and run player.
> > when I opened a video file (.mp4), it shows can't open movie
> > from: 
>
> > What codecs are supported?
>
> > Thanks
> > Mary- Hide quoted text -
>
> - Show quoted text -
--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---



[chromium-dev] How does chromium load font during page rendering

2009-06-01 Thread Lucius Fox

Hi,

Can you please point me to the code (for mac os) where chromium load
font during page rendering?
for example, chromium needs to load the font matrix for the font
specified by css/html for text to measure how much of it can fit on 1
line and wrap the rest for the next line?

Thank you.

--~--~-~--~~~---~--~~
Chromium Developers mailing list: chromium-dev@googlegroups.com 
View archives, change email options, or unsubscribe: 
http://groups.google.com/group/chromium-dev
-~--~~~~--~~--~--~---